Use list literal without using dict.keys() (#42573)
This commit is contained in:
parent
2dc5c4dd69
commit
92379ad8d2
18 changed files with 27 additions and 27 deletions
|
@ -471,7 +471,7 @@ class YeelightGenericLight(YeelightEntity, LightEntity):
|
|||
@property
|
||||
def custom_effects_names(self):
|
||||
"""Return list with custom effects names."""
|
||||
return list(self.custom_effects.keys())
|
||||
return list(self.custom_effects)
|
||||
|
||||
@property
|
||||
def light_type(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue