8 files
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user