From 3e71b1daa4b1ea164f3f037022d010ad87d7b487 Mon Sep 17 00:00:00 2001 From: Erik Montnemery Date: Tue, 20 Jun 2023 23:00:22 +0200 Subject: [PATCH] Correct calls to super class in TriggerEntity (#94916) --- homeassistant/components/template/trigger_entity.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/homeassistant/components/template/trigger_entity.py b/homeassistant/components/template/trigger_entity.py index 72165ddbf59..7d1a844fb3d 100644 --- a/homeassistant/components/template/trigger_entity.py +++ b/homeassistant/components/template/trigger_entity.py @@ -18,13 +18,13 @@ class TriggerEntity(TriggerBaseEntity, CoordinatorEntity[TriggerUpdateCoordinato config: dict, ) -> None: """Initialize the entity.""" - super(CoordinatorEntity, self).__init__(coordinator) - super().__init__(hass, config) + CoordinatorEntity.__init__(self, coordinator) + TriggerBaseEntity.__init__(self, hass, config) async def async_added_to_hass(self) -> None: """Handle being added to Home Assistant.""" - await super().async_added_to_hass() - await super(CoordinatorEntity, self).async_added_to_hass() + await TriggerBaseEntity.async_added_to_hass(self) + await CoordinatorEntity.async_added_to_hass(self) # type: ignore[arg-type] if self.coordinator.data is not None: self._process_data()