Skip to content

Commit

Permalink
Fix regression
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwolsink committed Aug 14, 2023
1 parent 8e7533d commit f351be6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/aguaiot/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, coordinator, device):
CoordinatorEntity.__init__(self, coordinator)
self._device = device

if getattr(self._device, "water_temperature", 0) > 0:
if self._device.water_temperature and self._device.water_temperature > 0:
self._device_type = DEVICE_TYPE_WATER
else:
self._device_type = DEVICE_TYPE_AIR
Expand Down

0 comments on commit f351be6

Please sign in to comment.