Add defult methods to base class for switch_state and sensor_state
This commit is contained in:
parent
2a0d459722
commit
c3a9db0a37
1 changed files with 10 additions and 0 deletions
|
@ -108,6 +108,16 @@ class SwitchDevice(ToggleEntity):
|
|||
""" Today total power usage in mw. """
|
||||
return None
|
||||
|
||||
@property
|
||||
def standby_state(self):
|
||||
""" Is the device on - or in standby. """
|
||||
return None
|
||||
|
||||
@property
|
||||
def sensor_state(self):
|
||||
""" Is the sensor on or off. """
|
||||
return None
|
||||
|
||||
@property
|
||||
def device_state_attributes(self):
|
||||
""" Returns device specific state attributes. """
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue