mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Remove unnecessary assignment of Template.hass from history_stats (#123671)
This commit is contained in:
parent
64ceb11f8c
commit
27d76f5953
@ -103,10 +103,6 @@ async def async_setup_platform(
|
||||
name: str = config[CONF_NAME]
|
||||
unique_id: str | None = config.get(CONF_UNIQUE_ID)
|
||||
|
||||
for template in (start, end):
|
||||
if template is not None:
|
||||
template.hass = hass
|
||||
|
||||
history_stats = HistoryStats(hass, entity_id, entity_states, start, end, duration)
|
||||
coordinator = HistoryStatsUpdateCoordinator(hass, history_stats, name)
|
||||
await coordinator.async_refresh()
|
||||
|
Loading…
x
Reference in New Issue
Block a user