Update integrations j-o to override extra_state_attributes() (#47758)
This commit is contained in:
parent
1095905f8c
commit
14a59d290a
110 changed files with 150 additions and 150 deletions
|
@ -126,7 +126,7 @@ class NMBSLiveBoard(Entity):
|
|||
return self._state
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the sensor attributes if data is available."""
|
||||
if self._state is None or not self._attrs:
|
||||
return None
|
||||
|
@ -202,7 +202,7 @@ class NMBSSensor(Entity):
|
|||
return "mdi:train"
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return sensor attributes if data is available."""
|
||||
if self._state is None or not self._attrs:
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue