Address late fritzbox coordinator runtime device discover review comments (#104267)
replace list comprehension by generator expression
This commit is contained in:
parent
ce497dd7ed
commit
f69045fb64
7 changed files with 26 additions and 38 deletions
|
@ -24,7 +24,7 @@ async def async_setup_entry(
|
|||
if not coordinator.new_templates:
|
||||
return
|
||||
async_add_entities(
|
||||
[FritzBoxTemplate(coordinator, ain) for ain in coordinator.new_templates]
|
||||
FritzBoxTemplate(coordinator, ain) for ain in coordinator.new_templates
|
||||
)
|
||||
|
||||
entry.async_on_unload(coordinator.async_add_listener(_add_entities))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue