mirror of
https://github.com/basnijholt/adaptive-lighting.git
synced 2026-09-12 06:44:04 +02:00
device_state_attributes warnings 2021.12.0b (#230)
* device_state_attributes warnings 2021.12.0b Fix for device_state_attributes warnings which began in release 2021.12.0b * device_state_attributes warnings 2021.12.0b Fix for device_state_attributes warnings which began in release 2021.12.0b
This commit is contained in:
parent
6c3ca669e6
commit
21f088e825
1 changed files with 1 additions and 1 deletions
|
|
@ -703,7 +703,7 @@ class AdaptiveSwitch(SwitchEntity, RestoreEntity):
|
|||
return self._icon
|
||||
|
||||
@property
|
||||
def device_state_attributes(self) -> Dict[str, Any]:
|
||||
def extra_state_attributes(self) -> Dict[str, Any]:
|
||||
"""Return the attributes of the switch."""
|
||||
if not self.is_on:
|
||||
return {key: None for key in self._settings}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue