mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-11 00:54:28 +05:00
fix assumed state
This commit is contained in:
@@ -218,6 +218,7 @@ class MegaOutPort(MegaPushEntity):
|
|||||||
self._is_on = None
|
self._is_on = None
|
||||||
self.dimmer = dimmer
|
self.dimmer = dimmer
|
||||||
|
|
||||||
|
@property
|
||||||
def assumed_state(self) -> bool:
|
def assumed_state(self) -> bool:
|
||||||
return True if self.index is not None or self.mega.mqtt is None else False
|
return True if self.index is not None or self.mega.mqtt is None else False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user