From c3a9db0a3747181a186b1fe6d514d7d0e3e1a07d Mon Sep 17 00:00:00 2001 From: pavoni Date: Sat, 29 Aug 2015 20:32:46 +0100 Subject: [PATCH] Add defult methods to base class for switch_state and sensor_state --- homeassistant/components/switch/__init__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/homeassistant/components/switch/__init__.py b/homeassistant/components/switch/__init__.py index 4f83b8aa24f..f245406fb28 100644 --- a/homeassistant/components/switch/__init__.py +++ b/homeassistant/components/switch/__init__.py @@ -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. """