Skip to content

Commit

Permalink
Fix water warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bergdahl committed May 31, 2024
1 parent 20ecb05 commit 963b8a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/growcube/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def handle_report(self, report: GrowcubeReport):
self.set_device_id(report.device_id)
elif isinstance(report, WaterStateGrowcubeReport):
_LOGGER.debug(f"Water state {report.water_warning}")
self.data.water_state = report.water_warning
self.data.water_state = not report.water_warning
elif isinstance(report, MoistureHumidityStateGrowcubeReport):
_LOGGER.debug(f"Sensor reading, channel %s, humidity %s, temperature %s, moisture %s",
report.channel,
Expand Down

0 comments on commit 963b8a5

Please sign in to comment.