Skip to content

Commit

Permalink
fix: HA does not need to poll EC for state (#220)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael "Chishm" Chisholm <[email protected]>
  • Loading branch information
chishm and chishm authored Nov 23, 2020
1 parent 48d5602 commit e8b833d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/entity_controller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand Down

0 comments on commit e8b833d

Please sign in to comment.