mirror of
https://github.com/home-assistant/core.git
synced 2025-08-10 16:15:08 +02:00
Change to device state attributes (#10536)
* Following the suggestion of @MartinHjelmare
This commit is contained in:
committed by
Martin Hjelmare
parent
59e943b3c1
commit
bc23799c71
@@ -113,7 +113,7 @@ class SerialSensor(Entity):
|
|||||||
return False
|
return False
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def state_attributes(self):
|
def device_state_attributes(self):
|
||||||
"""Return the attributes of the entity (if any JSON present)."""
|
"""Return the attributes of the entity (if any JSON present)."""
|
||||||
return self._attributes
|
return self._attributes
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user