mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 04:07:08 +00:00
Fix ScrapeSensor.async_added_to_hass (#100125)
This commit is contained in:
parent
9c65e59cc8
commit
6ccb74997c
@ -192,9 +192,7 @@ class ScrapeSensor(CoordinatorEntity[ScrapeCoordinator], ManualTriggerSensorEnti
|
||||
|
||||
async def async_added_to_hass(self) -> None:
|
||||
"""Ensure the data from the initial update is reflected in the state."""
|
||||
await ManualTriggerEntity.async_added_to_hass(self)
|
||||
# https://github.com/python/mypy/issues/15097
|
||||
await CoordinatorEntity.async_added_to_hass(self) # type: ignore[arg-type]
|
||||
await super().async_added_to_hass()
|
||||
self._async_update_from_rest_data()
|
||||
|
||||
def _async_update_from_rest_data(self) -> None:
|
||||
|
Loading…
x
Reference in New Issue
Block a user