mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Correct calls to super class in TriggerEntity (#94916)
This commit is contained in:
parent
16aa4c54ec
commit
3e71b1daa4
@ -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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user