Skip to content

Commit

Permalink
Fix unholding sensors that don't have a value (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelarnauts authored Jul 17, 2024
1 parent be08d8c commit 6d09f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions aiocomfoconnect/comfoconnect.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def _unhold_sensors(self):

# Emit the current cached values of the sensors, by now, they should have received a correct update.
for sensor_id, _ in self._sensors.items():
if self._sensors_values[sensor_id] is not None:
self._sensor_callback(sensor_id, self._sensors_values[sensor_id])
if self._sensors_values.get(sensor_id) is not None:
self._sensor_callback(sensor_id, self._sensors_values.get(sensor_id))

async def connect(self, uuid: str):
"""Connect to the bridge."""
Expand Down

0 comments on commit 6d09f90

Please sign in to comment.