mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +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,
|
config: dict,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Initialize the entity."""
|
"""Initialize the entity."""
|
||||||
super(CoordinatorEntity, self).__init__(coordinator)
|
CoordinatorEntity.__init__(self, coordinator)
|
||||||
super().__init__(hass, config)
|
TriggerBaseEntity.__init__(self, hass, config)
|
||||||
|
|
||||||
async def async_added_to_hass(self) -> None:
|
async def async_added_to_hass(self) -> None:
|
||||||
"""Handle being added to Home Assistant."""
|
"""Handle being added to Home Assistant."""
|
||||||
await super().async_added_to_hass()
|
await TriggerBaseEntity.async_added_to_hass(self)
|
||||||
await super(CoordinatorEntity, self).async_added_to_hass()
|
await CoordinatorEntity.async_added_to_hass(self) # type: ignore[arg-type]
|
||||||
if self.coordinator.data is not None:
|
if self.coordinator.data is not None:
|
||||||
self._process_data()
|
self._process_data()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user