Change function name in hvv_departures (#110349)
This commit is contained in:
parent
0157026489
commit
89331d0ff3
1 changed files with 2 additions and 2 deletions
|
@ -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):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue