Improve lists in integrations [C-D] (#113072)
This commit is contained in:
parent
4d77bec681
commit
c75342bd9a
32 changed files with 276 additions and 311 deletions
|
@ -64,9 +64,8 @@ async def async_setup_platform(
|
|||
|
||||
session = async_get_clientsession(hass)
|
||||
|
||||
sensors = []
|
||||
for nextpassage in config[CONF_NEXT_DEPARTURE]:
|
||||
sensors.append(
|
||||
async_add_entities(
|
||||
(
|
||||
DeLijnPublicTransportSensor(
|
||||
Passages(
|
||||
nextpassage[CONF_STOP_ID],
|
||||
|
@ -76,9 +75,10 @@ async def async_setup_platform(
|
|||
True,
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
async_add_entities(sensors, True)
|
||||
for nextpassage in config[CONF_NEXT_DEPARTURE]
|
||||
),
|
||||
True,
|
||||
)
|
||||
|
||||
|
||||
class DeLijnPublicTransportSensor(SensorEntity):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue