mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Fix enigma2 off state (#42407)
This commit is contained in:
parent
67b3552165
commit
8fc8ce8197
@ -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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user