Skip to content

Commit

Permalink
v0.2 - setting to 'unknown' instead of 0 so the minimal aggregation w…
Browse files Browse the repository at this point in the history
…orks.
  • Loading branch information
jeroenterheerdt committed Jun 23, 2020
1 parent af95919 commit 2b64e45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/daily/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
DOMAIN = "daily"
NAME = "Daily Sensor"
DOMAIN_DATA = f"{DOMAIN}_data"
VERSION = "0.1"
VERSION = "0.2"

ISSUE_URL = "https://github.com/jeroenterheerdt/HADailySensor/issues"

Expand Down
2 changes: 1 addition & 1 deletion custom_components/daily/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async def async_added_to_hass(self):
def _handle_reset(self, event: Event):
"""Receive the reset event."""
# reset the sensor
self._state = 0.0
self._state = None
self._values = []
self.hass.add_job(self.async_update_ha_state)

Expand Down

0 comments on commit 2b64e45

Please sign in to comment.