Skip to content

Commit

Permalink
Update sensor.py
Browse files Browse the repository at this point in the history
  • Loading branch information
djansen1987 authored Nov 6, 2022
1 parent ac88f21 commit bdad16d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/saj_esolar/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit bdad16d

Please sign in to comment.