Correct calls to super class in TriggerEntity (#94916)

This commit is contained in:
Erik Montnemery 2023-06-20 23:00:22 +02:00 committed by GitHub
parent 16aa4c54ec
commit 3e71b1daa4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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