Fix enigma2 off state (#42407)

This commit is contained in:
reaper7
2020-11-09 11:38:38 +01:00
committed by GitHub
parent 67b3552165
commit 8fc8ce8197

View File

@@ -133,6 +133,11 @@ class Enigma2Device(MediaPlayerEntity):
return STATE_PLAYING
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
def supported_features(self):
"""Flag of media commands that are supported."""