Clean up state_attributes vs device_state_attributes
This commit is contained in:
parent
681b84e1bd
commit
f08b77dc4c
23 changed files with 66 additions and 138 deletions
|
@ -95,8 +95,8 @@ class WemoSwitch(SwitchDevice):
|
|||
return self.wemo.name
|
||||
|
||||
@property
|
||||
def state_attributes(self):
|
||||
attr = super().state_attributes or {}
|
||||
def device_state_attributes(self):
|
||||
attr = {}
|
||||
if self.maker_params:
|
||||
# Is the maker sensor on or off.
|
||||
if self.maker_params['hassensor']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue