Skip to content

Commit

Permalink
Merge pull request #44 from Garulf/fix-current-source
Browse files Browse the repository at this point in the history
Fix current source option for `media_player` entities
  • Loading branch information
Garulf authored Mar 23, 2023
2 parents fe39300 + 4ebc4f2 commit 24d2770
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Name": "HA-Commander",
"Description": "Search, and interact with Home Assistant using Wox or Flow Launcher.",
"Author": "Garulf",
"Version": "5.1.0",
"Version": "5.1.1",
"Language": "python",
"Website": "https://github.com/Garulf/HA-Commander",
"IcoPath": "icons\\home-assistant.png",
Expand Down
1 change: 0 additions & 1 deletion plugin/homeassistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,6 @@ 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 24d2770

Please sign in to comment.