From e57eca517b445c718a72e90975778b9737e9f977 Mon Sep 17 00:00:00 2001 From: Stefan Jonasson Date: Sat, 5 Mar 2016 10:24:22 +0100 Subject: [PATCH] Add assumed state for Tellstick devices. Tellstick device states are always assumed so this should be set to true. --- homeassistant/components/light/tellstick.py | 5 +++++ homeassistant/components/switch/tellstick.py | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/homeassistant/components/light/tellstick.py b/homeassistant/components/light/tellstick.py index c0f59abc10b..8a800ba0a8a 100644 --- a/homeassistant/components/light/tellstick.py +++ b/homeassistant/components/light/tellstick.py @@ -125,3 +125,8 @@ class TellstickLight(Light): def should_poll(self): """ Tells Home Assistant not to poll this entity. """ return False + + @property + def assumed_state(self): + """ Tellstick devices are always assumed state """ + return True diff --git a/homeassistant/components/switch/tellstick.py b/homeassistant/components/switch/tellstick.py index 934a4024527..05c6007ba35 100644 --- a/homeassistant/components/switch/tellstick.py +++ b/homeassistant/components/switch/tellstick.py @@ -72,6 +72,11 @@ class TellstickSwitchDevice(ToggleEntity): """ Tells Home Assistant not to poll this entity. """ return False + @property + def assumed_state(self): + """ Tellstick devices are always assumed state """ + return True + @property def name(self): """ Returns the name of the switch if any. """