Skip to content

Commit

Permalink
Update sensor.py
Browse files Browse the repository at this point in the history
changed self_state to default 0 to skip errormessage when using riemann sum sensors.
  • Loading branch information
johanschelin authored Sep 30, 2023
1 parent 5153818 commit 7581130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/sonnenbatterie/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def generateDeviceInfo(configentry_id,systemdata):
class SonnenBatterieSensor(CoordinatorEntity,SensorEntity):
def __init__(self,id,deviceinfo,coordinator,name=None):
self._attributes = {}
self._state = "NOTRUN"
self._state = "0"
self._deviceinfo=deviceinfo
self.coordinator=coordinator
self.entity_id = id
Expand Down

0 comments on commit 7581130

Please sign in to comment.