Skip to content

Commit

Permalink
revert last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
zweckj committed Aug 11, 2023
1 parent af2d01a commit 66ab1ac
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions custom_components/lamarzocco/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def __init__(self, hass, config_entry, lm):
self._websocket_task = None
self._config_entry = config_entry
self._use_websocket = self._config_entry.options.get(CONF_USE_WEBSOCKET, True)
self._brew_running_set = False

async def _async_update_data(self):
try:
Expand Down Expand Up @@ -94,15 +93,6 @@ def _on_data_received(self, property_updated, update):

self.data = self._lm

# machine spams the websocket with brew_active updates, during brew
# so we only want to update the listeners once, to avoid overloading HA
if property_updated == BREW_ACTIVE and update and not self._brew_running_set:
self._brew_running_set = True
elif property_updated == BREW_ACTIVE and update and self._brew_running_set:
return
elif property_updated == BREW_ACTIVE and not update:
self._brew_running_set = False

self.async_update_listeners()

def terminate_websocket(self):
Expand Down

0 comments on commit 66ab1ac

Please sign in to comment.