mirror of
https://github.com/andvikt/mega_hacs.git
synced 2026-11-02 18:28:44 +05:00
fix assumed state
This commit is contained in:
1 parent
ec505ac2ef
commit
7ba1562f12
1 file changed
+1
@@ -218,6 +218,7 @@ class MegaOutPort(MegaPushEntity):
|
||||
self._is_on = None
|
||||
self.dimmer = dimmer
|
||||
|
||||
@property
|
||||
def assumed_state(self) -> bool:
|
||||
return True if self.index is not None or self.mega.mqtt is None else False
|
||||
|
||||
|
||||
Reference in new issue
Block a user