From 963b8a5b981033467617fab7b4de42ba4c341f49 Mon Sep 17 00:00:00 2001 From: Jonny Bergdahl Date: Fri, 31 May 2024 10:06:43 +0200 Subject: [PATCH] Fix water warning --- custom_components/growcube/coordinator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/growcube/coordinator.py b/custom_components/growcube/coordinator.py index e754161..47e8191 100644 --- a/custom_components/growcube/coordinator.py +++ b/custom_components/growcube/coordinator.py @@ -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,