Remove unnecessary assignment of Template.hass from history_stats (#123671)

This commit is contained in:
Erik Montnemery 2024-08-12 14:52:34 +02:00 committed by GitHub
parent 64ceb11f8c
commit 27d76f5953
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()