Skip to content

Commit

Permalink
fix(switch): add device_class
Browse files Browse the repository at this point in the history
  • Loading branch information
alandtse committed Jan 18, 2020
1 parent cd27bb9 commit 016c22e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions custom_components/alexa_media/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,11 @@ def name(self):
"""Return the name of the switch."""
return "{} {} switch".format(self._client.name, self._name)

@property
def device_class(self):
"""Return the device_class of the switch."""
return "switch"

@property
def should_poll(self):
"""Return the polling state."""
Expand Down

0 comments on commit 016c22e

Please sign in to comment.