Skip to content

Commit

Permalink
:
Browse files Browse the repository at this point in the history
  • Loading branch information
OmegaModr committed Apr 13, 2024
1 parent 6adfdf7 commit 7f5f362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/ev_metron_websockets/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def state(self) -> bool:
"""Return the state of the sensor."""
if int(self._hub.metron_ev_status) in [2, 3, 4, 7]:
return True
else
else:
return False

class CarCharging(MetronEVBaseEntity):
Expand All @@ -558,5 +558,5 @@ def state(self) -> bool:
"""Return the state of the sensor."""
if int(self._hub.metron_ev_status) == 3 and int(self._hub._TCA0_cmp2) != 8000:
return True
else
else:
return False

0 comments on commit 7f5f362

Please sign in to comment.