Return attribute dict directly without temporary variable v2 (#41271)
This commit is contained in:
1 parent
33e69fe4bf
commit
513f03eb1f
27 files changed
+90
-124
No files matched your search
@@ -213,8 +213,7 @@ class DerivativeSensor(RestoreEntity):
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
"""Return the state attributes of the sensor."""
|
||||
state_attr = {ATTR_SOURCE_ID: self._sensor_source_id}
|
||||
return state_attr
|
||||
return {ATTR_SOURCE_ID: self._sensor_source_id}
|
||||
|
||||
@property
|
||||
def icon(self):
|
||||
|
||||
Reference in new issue
Block a user