Return attribute dict directly without temporary variable (#41206)

This commit is contained in:
springstan 2020-10-05 12:51:48 +02:00 committed by GitHub
parent cf5c99d2a9
commit 038c05d0ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
23 changed files with 27 additions and 60 deletions

View file

@ -51,6 +51,4 @@ class LutronOccupancySensor(LutronDevice, BinarySensorEntity):
@property
def device_state_attributes(self):
"""Return the state attributes."""
attr = {}
attr["lutron_integration_id"] = self._lutron_device.id
return attr
return {"lutron_integration_id": self._lutron_device.id}