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:
reaper7 2020-11-16 20:25:07 +01:00 committed by GitHub
parent 52e1282d8c
commit 159ebe1dac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -136,7 +136,7 @@ class Enigma2Device(MediaPlayerEntity):
@property
def available(self):
"""Return True if the device is available."""
return self.e2_box.is_offline
return not self.e2_box.is_offline
@property
def supported_features(self):