Use list literal without using dict.keys() (#42573)

This commit is contained in:
springstan 2020-10-30 15:19:13 +01:00 committed by GitHub
parent 2dc5c4dd69
commit 92379ad8d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 27 additions and 27 deletions

View file

@ -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):