From e8b833d44b75b022db2317dc38e5a31a4224a6a7 Mon Sep 17 00:00:00 2001 From: Michael Chisholm Date: Mon, 23 Nov 2020 19:17:57 +1100 Subject: [PATCH] fix: HA does not need to poll EC for state (#220) Co-authored-by: Michael "Chishm" Chisholm --- custom_components/entity_controller/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/custom_components/entity_controller/__init__.py b/custom_components/entity_controller/__init__.py index c93421b..60ccd04 100644 --- a/custom_components/entity_controller/__init__.py +++ b/custom_components/entity_controller/__init__.py @@ -446,6 +446,10 @@ async def async_added_to_hass(self): """Register update dispatcher.""" self.may_update = True + @property + def should_poll(self) -> bool: + """EntityController will push its state to HA""" + return False class Model: """ Represents the transitions state machine model """