Remove obsolete methods in HVV departures (#100451)

* Call async added to hass super in HVV departures

* Remove obsolete methods
This commit is contained in:
Joost Lekkerkerker 2023-09-22 16:55:07 +02:00 committed by GitHub
parent 2a49b6ca7e
commit 76cc04e52b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -191,17 +191,3 @@ class HvvDepartureBinarySensor(CoordinatorEntity, BinarySensorEntity):
for k, v in self.coordinator.data[self.idx]["attributes"].items()
if v is not None
}
# pylint: disable-next=hass-missing-super-call
async def async_added_to_hass(self) -> None:
"""When entity is added to hass."""
self.async_on_remove(
self.coordinator.async_add_listener(self.async_write_ha_state)
)
async def async_update(self) -> None:
"""Update the entity.
Only used by the generic entity update service.
"""
await self.coordinator.async_request_refresh()