Skip to content

Commit

Permalink
fix attributeerror and bump
Browse files Browse the repository at this point in the history
  • Loading branch information
tmjo committed Apr 8, 2021
1 parent 08b157c commit 92b1295
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions custom_components/heos/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,11 @@ def player_master(self, group, player):

def entity_id_from_player_id(self, playerid): # group
for device in self._hass.data[MEDIA_PLAYER_DOMAIN].entities:
if playerid == device.player_id:
return device.entity_id
try:
if playerid == device.player_id:
return device.entity_id
except AttributeError as e:
pass
return None

def get_groupid(self, player):
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion custom_components/heos/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"domain": "heos",
"name": "Denon HEOS (custom)",
"config_flow": true,
"version": "2021.3.2",
"version": "2021.4.1",
"documentation": "https://github.com/tmjo/heos_custom",
"issue_tracker": "https://github.com/tmjo/heos_custom/issues",
"requirements": ["pyheos==0.7.2"],
Expand Down

0 comments on commit 92b1295

Please sign in to comment.