mirror of
https://github.com/home-assistant/core.git
synced 2025-08-07 06:35:10 +02:00
Fix enigma2 off state (#42407)
This commit is contained in:
@@ -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."""
|
||||||
|
Reference in New Issue
Block a user