Skip to content

Commit

Permalink
Create current source item
Browse files Browse the repository at this point in the history
  • Loading branch information
Garulf committed Feb 18, 2022
1 parent 6b7fb16 commit b4722e8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/homeassistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ def __init__(self, client: Client, entity: dict) -> None:
getattr(self, source).icon = "radiobox-blank"
current_source = self.attributes.get("source")
if current_source:
setattr(self, current_source, partial(self._select_source, source))
getattr(self, current_source).icon = "radiobox-marked"
getattr(self, current_source).__doc__ = "Currently selected Source."

Expand Down

0 comments on commit b4722e8

Please sign in to comment.