Remove deprecated device_state_attributes (#55734)
This commit is contained in:
parent
58da58c008
commit
f5a543b220
6 changed files with 8 additions and 15 deletions
|
@ -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."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue