From 7ba1562f122cc9a6c559826c8be351b98abc778d Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 17 Feb 2021 17:11:00 +0300 Subject: [PATCH] fix assumed state --- custom_components/mega/entities.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/mega/entities.py b/custom_components/mega/entities.py index 06bc025..a89b6b7 100644 --- a/custom_components/mega/entities.py +++ b/custom_components/mega/entities.py @@ -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