From bdad16d220af4977c8f6356499e4bf694db8cdfc Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 6 Nov 2022 19:02:13 +0100 Subject: [PATCH] Update sensor.py --- custom_components/saj_esolar/sensor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/saj_esolar/sensor.py b/custom_components/saj_esolar/sensor.py index c1f3855..27bd640 100644 --- a/custom_components/saj_esolar/sensor.py +++ b/custom_components/saj_esolar/sensor.py @@ -952,7 +952,7 @@ async def async_update(self): if self._type == 'isOnline': if 'isOnline' in energy['plantList'][self.plant_id]: if energy['plantList'][self.plant_id]["isOnline"] is not None: - if int(energy'plantList'][self.plant_id]["isOnline"]) is 'N': + if int(energy'plantList'][self.plant_id]["isOnline"]) == "N": self._state = "No" else: self._state = "Yes"