From f5d1f53fabd1557ece6c19b35182fdb6306ad42d Mon Sep 17 00:00:00 2001 From: Julius Mittenzwei Date: Thu, 15 Feb 2018 07:07:04 +0100 Subject: [PATCH] Small code cleanup: (#12409) - should_poll of base class already returns False - there is no is_on within Scene --- homeassistant/components/scene/litejet.py | 5 ----- homeassistant/components/scene/lutron_caseta.py | 10 ---------- homeassistant/components/scene/vera.py | 5 ----- homeassistant/components/scene/wink.py | 5 ----- 4 files changed, 25 deletions(-) diff --git a/homeassistant/components/scene/litejet.py b/homeassistant/components/scene/litejet.py index b8f3a82c0e3..37fb58d8dc7 100644 --- a/homeassistant/components/scene/litejet.py +++ b/homeassistant/components/scene/litejet.py @@ -42,11 +42,6 @@ class LiteJetScene(Scene): """Return the name of the scene.""" return self._name - @property - def should_poll(self): - """Return that polling is not necessary.""" - return False - @property def device_state_attributes(self): """Return the device-specific state attributes.""" diff --git a/homeassistant/components/scene/lutron_caseta.py b/homeassistant/components/scene/lutron_caseta.py index 5f96e126321..0d9024d194e 100644 --- a/homeassistant/components/scene/lutron_caseta.py +++ b/homeassistant/components/scene/lutron_caseta.py @@ -42,16 +42,6 @@ class LutronCasetaScene(Scene): """Return the name of the scene.""" return self._scene_name - @property - def should_poll(self): - """Return that polling is not necessary.""" - return False - - @property - def is_on(self): - """There is no way of detecting if a scene is active (yet).""" - return False - @asyncio.coroutine def async_activate(self): """Activate the scene.""" diff --git a/homeassistant/components/scene/vera.py b/homeassistant/components/scene/vera.py index 24dfaef1fb1..4f580356fbb 100644 --- a/homeassistant/components/scene/vera.py +++ b/homeassistant/components/scene/vera.py @@ -53,8 +53,3 @@ class VeraScene(Scene): def device_state_attributes(self): """Return the state attributes of the scene.""" return {'vera_scene_id': self.vera_scene.vera_scene_id} - - @property - def should_poll(self): - """Return that polling is not necessary.""" - return False diff --git a/homeassistant/components/scene/wink.py b/homeassistant/components/scene/wink.py index 0f617511818..5bd053bdd39 100644 --- a/homeassistant/components/scene/wink.py +++ b/homeassistant/components/scene/wink.py @@ -38,11 +38,6 @@ class WinkScene(WinkDevice, Scene): """Call when entity is added to hass.""" self.hass.data[DOMAIN]['entities']['scene'].append(self) - @property - def is_on(self): - """Python-wink will always return False.""" - return self.wink.state() - def activate(self): """Activate the scene.""" self.wink.activate()