Skip to content

Commit

Permalink
Merge pull request #19 from diyanei/fix_17
Browse files Browse the repository at this point in the history
Fix #17
  • Loading branch information
jeroenterheerdt authored Aug 14, 2021
2 parents 52bb415 + bd0cc60 commit f71023c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion custom_components/daily/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
CONF_INTERVAL,
CONF_UNIT_OF_MEASUREMENT,
CONF_AUTO_RESET,
DEFAULT_AUTO_RESET,
EVENT_RESET,
EVENT_UPDATE,
SERVICE_RESET,
Expand All @@ -44,7 +45,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
operation = entry.data.get(CONF_OPERATION)
interval = entry.data.get(CONF_INTERVAL)
unit_of_measurement = entry.data.get(CONF_UNIT_OF_MEASUREMENT)
auto_reset = entry.data.get(CONF_AUTO_RESET)
auto_reset = entry.data.get(CONF_AUTO_RESET, DEFAULT_AUTO_RESET)

# set up coordinator
coordinator = DailySensorUpdateCoordinator(
Expand Down

0 comments on commit f71023c

Please sign in to comment.