Skip to content

Commit

Permalink
fix: fix device_info identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Sep 15, 2019
1 parent 3c5ff3a commit b1c8213
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/alexa_media/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ def device_info(self):
return {
'identifiers': {
# Serial numbers are unique identifiers within a specific domain
(self.unique_id)
(ALEXA_DOMAIN, self.unique_id)
},
'name': self.name,
'manufacturer': "Amazon",
Expand Down
4 changes: 2 additions & 2 deletions custom_components/alexa_media/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,9 @@ def device_info(self):
return {
'identifiers': {
# Serial numbers are unique identifiers within a specific domain
(self._client.unique_id)
(ALEXA_DOMAIN, self._client.unique_id)
},
'via_device': (self._client.unique_id),
'via_device': (ALEXA_DOMAIN, self._client.unique_id),
}

class DNDSwitch(AlexaMediaSwitch):
Expand Down

0 comments on commit b1c8213

Please sign in to comment.