Pylint cleanups (#15626)
* Pylint 2 no-else-return fixes * Remove unneeded abstract-class-not-used pylint disable
This commit is contained in:
parent
a38c0d6d15
commit
b7c336a687
166 changed files with 425 additions and 490 deletions
|
@ -103,12 +103,10 @@ def extract_entity_ids(hass, service_call, expand_group=True):
|
|||
return [ent_id for ent_id in
|
||||
group.expand_entity_ids(service_ent_id)]
|
||||
|
||||
else:
|
||||
if isinstance(service_ent_id, str):
|
||||
return [service_ent_id]
|
||||
|
||||
if isinstance(service_ent_id, str):
|
||||
return [service_ent_id]
|
||||
|
||||
return service_ent_id
|
||||
return service_ent_id
|
||||
|
||||
|
||||
@bind_hass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue