Return attribute dict directly without temporary variable v2 (#41271)
This commit is contained in:
parent
33e69fe4bf
commit
513f03eb1f
27 changed files with 90 additions and 124 deletions
|
@ -458,7 +458,6 @@ class HueLight(CoordinatorEntity, LightEntity):
|
|||
@property
|
||||
def device_state_attributes(self):
|
||||
"""Return the device state attributes."""
|
||||
attributes = {}
|
||||
if self.is_group:
|
||||
attributes[ATTR_IS_HUE_GROUP] = self.is_group
|
||||
return attributes
|
||||
return {ATTR_IS_HUE_GROUP: self.is_group}
|
||||
return {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue