Skip to content

Commit

Permalink
Fix salt sensor update code
Browse files Browse the repository at this point in the history
  • Loading branch information
Crewski committed May 1, 2023
1 parent 5ee1db0 commit cbad89a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/njspc_ha/chemistry.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,9 +740,10 @@ def _handle_coordinator_update(self) -> None:
"""Handle updated data from the coordinator."""
if (
self.coordinator.data["event"] == EVENT_CHLORINATOR
and self.coordinator.data["id"] == self.entity_id
and self.coordinator.data["id"] == self.equipment_id
):
# self._chlorinator = self.coordinator.data

if SALT_LEVEL in self.coordinator.data:
self._value = self.coordinator.data[SALT_LEVEL]
if SALT_TARGET in self.coordinator.data:
Expand Down

0 comments on commit cbad89a

Please sign in to comment.