mirror of
https://github.com/home-assistant/core.git
synced 2025-07-24 21:57:51 +00:00
Fix Enigma2 available entity property (#43292)
Available property should return self.e2_box.is_offlin negation fixes previous PR: https://github.com/home-assistant/core/pull/42407
This commit is contained in:
parent
52e1282d8c
commit
159ebe1dac
@ -136,7 +136,7 @@ class Enigma2Device(MediaPlayerEntity):
|
|||||||
@property
|
@property
|
||||||
def available(self):
|
def available(self):
|
||||||
"""Return True if the device is available."""
|
"""Return True if the device is available."""
|
||||||
return self.e2_box.is_offline
|
return not self.e2_box.is_offline
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def supported_features(self):
|
def supported_features(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user