Skip to content
Snippets Groups Projects
Unverified Commit 8fc8ce81 authored by reaper7's avatar reaper7 Committed by GitHub
Browse files

Fix enigma2 off state (#42407)

parent 67b35521
No related branches found
No related tags found
No related merge requests found
...@@ -133,6 +133,11 @@ class Enigma2Device(MediaPlayerEntity): ...@@ -133,6 +133,11 @@ class Enigma2Device(MediaPlayerEntity):
return STATE_PLAYING return STATE_PLAYING
return STATE_OFF if self.e2_box.in_standby else STATE_ON return STATE_OFF if self.e2_box.in_standby else STATE_ON
@property
def available(self):
"""Return True if the device is available."""
return self.e2_box.is_offline
@property @property
def supported_features(self): def supported_features(self):
"""Flag of media commands that are supported.""" """Flag of media commands that are supported."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment