Remove deprecated device_state_attributes (#55734)

This commit is contained in:
Marc Mueller 2021-09-04 22:16:01 +02:00 committed by GitHub
parent 58da58c008
commit f5a543b220
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 15 deletions

View file

@ -55,6 +55,7 @@ class NWSSensor(CoordinatorEntity, SensorEntity):
"""An NWS Sensor Entity."""
entity_description: NWSSensorEntityDescription
_attr_extra_state_attributes = {ATTR_ATTRIBUTION: ATTRIBUTION}
def __init__(
self,
@ -95,11 +96,6 @@ class NWSSensor(CoordinatorEntity, SensorEntity):
return round(value)
return value
@property
def device_state_attributes(self):
"""Return the attribution."""
return {ATTR_ATTRIBUTION: ATTRIBUTION}
@property
def unique_id(self):
"""Return a unique_id for this entity."""