Update integrations t-z to override extra_state_attributes() (#47760)
This commit is contained in:
parent
14a59d290a
commit
1fc8e32d86
127 changed files with 218 additions and 223 deletions
|
@ -119,18 +119,18 @@ class WinkBinarySensorEntity(WinkDevice, BinarySensorEntity):
|
|||
return SENSOR_TYPES.get(self.capability)
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the device state attributes."""
|
||||
return super().device_state_attributes
|
||||
return super().extra_state_attributes
|
||||
|
||||
|
||||
class WinkSmokeDetector(WinkBinarySensorEntity):
|
||||
"""Representation of a Wink Smoke detector."""
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the device state attributes."""
|
||||
_attributes = super().device_state_attributes
|
||||
_attributes = super().extra_state_attributes
|
||||
_attributes["test_activated"] = self.wink.test_activated()
|
||||
return _attributes
|
||||
|
||||
|
@ -139,9 +139,9 @@ class WinkHub(WinkBinarySensorEntity):
|
|||
"""Representation of a Wink Hub."""
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the device state attributes."""
|
||||
_attributes = super().device_state_attributes
|
||||
_attributes = super().extra_state_attributes
|
||||
_attributes["update_needed"] = self.wink.update_needed()
|
||||
_attributes["firmware_version"] = self.wink.firmware_version()
|
||||
_attributes["pairing_mode"] = self.wink.pairing_mode()
|
||||
|
@ -159,9 +159,9 @@ class WinkRemote(WinkBinarySensorEntity):
|
|||
"""Representation of a Wink Lutron Connected bulb remote."""
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the state attributes."""
|
||||
_attributes = super().device_state_attributes
|
||||
_attributes = super().extra_state_attributes
|
||||
_attributes["button_on_pressed"] = self.wink.button_on_pressed()
|
||||
_attributes["button_off_pressed"] = self.wink.button_off_pressed()
|
||||
_attributes["button_up_pressed"] = self.wink.button_up_pressed()
|
||||
|
@ -178,9 +178,9 @@ class WinkButton(WinkBinarySensorEntity):
|
|||
"""Representation of a Wink Relay button."""
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
def extra_state_attributes(self):
|
||||
"""Return the device state attributes."""
|
||||
_attributes = super().device_state_attributes
|
||||
_attributes = super().extra_state_attributes
|
||||
_attributes["pressed"] = self.wink.pressed()
|
||||
_attributes["long_pressed"] = self.wink.long_pressed()
|
||||
return _attributes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue