Change function name in hvv_departures (#110349)

This commit is contained in:
Joost Lekkerkerker 2024-02-12 15:54:48 +01:00 committed by GitHub
parent 0157026489
commit 89331d0ff3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ _LOGGER = logging.getLogger(__name__)
async def async_setup_entry( async def async_setup_entry(
hass: HomeAssistant, hass: HomeAssistant,
config_entry: ConfigEntry, config_entry: ConfigEntry,
async_add_devices: AddEntitiesCallback, async_add_entities: AddEntitiesCallback,
) -> None: ) -> None:
"""Set up the sensor platform.""" """Set up the sensor platform."""
hub = hass.data[DOMAIN][config_entry.entry_id] hub = hass.data[DOMAIN][config_entry.entry_id]
@ -50,7 +50,7 @@ async def async_setup_entry(
session = aiohttp_client.async_get_clientsession(hass) session = aiohttp_client.async_get_clientsession(hass)
sensor = HVVDepartureSensor(hass, config_entry, session, hub) sensor = HVVDepartureSensor(hass, config_entry, session, hub)
async_add_devices([sensor], True) async_add_entities([sensor], True)
class HVVDepartureSensor(SensorEntity): class HVVDepartureSensor(SensorEntity):