Skip to content

Commit

Permalink
Revert runningstate
Browse files Browse the repository at this point in the history
  • Loading branch information
djansen1987 authored Aug 30, 2023
1 parent f754252 commit e203aba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions custom_components/saj_esolar/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -870,10 +870,8 @@ async def async_update(self):
if energy['plantDetail']["runningState"] is not None:
if int(energy['plantDetail']["runningState"]) is 0:
self._state = "No"
elif int(energy['plantDetail']["runningState"]) is 1
self._state = "Yes"
else:
self._state = "Error"
self._state = "Yes"
if self._type == 'todayElectricity':
if 'todayElectricity' in energy['plantDetail']:
if energy['plantDetail']["todayElectricity"] is not None:
Expand Down

0 comments on commit e203aba

Please sign in to comment.