This commit is contained in:
Home Assistant Version Control
2026-10-12 22:32:16 +00:00
parent b12fb1db7c
commit 957b247d4a
8 changed files with 140 additions and 67 deletions
+1
View File
@@ -215,6 +215,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
hass, entry, implementation
),
log_traces=current_options.get(CONF_LOG_TRACES, DEFAULT_LOG_TRACES),
state_yaml=hass.config.path("hilo_state.yaml"),
)
except (TimeoutError, client_exceptions.ClientConnectorError):
+2 -2
View File
@@ -11,6 +11,6 @@
"documentation": "https://github.com/dvd-dev/hilo",
"iot_class": "cloud_push",
"issue_tracker": "https://github.com/dvd-dev/hilo/issues",
"requirements": ["python-hilo==2026.9.1"],
"version": "2026.10.1"
"requirements": ["python-hilo==2026.10.1"],
"version": "2026.10.2"
}
+3 -1
View File
@@ -739,7 +739,9 @@ class HiloRewardSensor(HiloEntity, RestoreEntity, SensorEntity):
Platform.SENSOR,
)
LOG.debug("Setting up RewardSensor entity: %s", self._attr_name)
self._history_state_yaml: str = "hilo_eventhistory_state.yaml"
self._history_state_yaml: str = hilo._hass.config.path(
"hilo_eventhistory_state.yaml"
)
self.scan_interval = timedelta(seconds=REWARD_SCAN_INTERVAL)
self._state = 0
self._history = []