Improve lists in integrations [N-O] (#113231)
This commit is contained in:
parent
595d07f1c6
commit
e6a692f354
35 changed files with 254 additions and 310 deletions
|
@ -30,10 +30,8 @@ async def async_setup_entry(
|
|||
hass: HomeAssistant, entry: ConfigEntry, async_add_entities: AddEntitiesCallback
|
||||
) -> None:
|
||||
"""Set up the Neato sensor using config entry."""
|
||||
dev = []
|
||||
neato: NeatoHub = hass.data[NEATO_LOGIN]
|
||||
for robot in hass.data[NEATO_ROBOTS]:
|
||||
dev.append(NeatoSensor(neato, robot))
|
||||
dev = [NeatoSensor(neato, robot) for robot in hass.data[NEATO_ROBOTS]]
|
||||
|
||||
if not dev:
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue