Add defult methods to base class for switch_state and sensor_state

This commit is contained in:
pavoni 2015-08-29 20:32:46 +01:00
parent 2a0d459722
commit c3a9db0a37

View file

@ -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. """