Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small code cleanup within scenes #12409

Merged
merged 2 commits into from
Feb 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions homeassistant/components/scene/litejet.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ def name(self):
"""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."""
Expand Down
10 changes: 0 additions & 10 deletions homeassistant/components/scene/lutron_caseta.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ def name(self):
"""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."""
Expand Down
5 changes: 0 additions & 5 deletions homeassistant/components/scene/vera.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,3 @@ def name(self):
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
5 changes: 0 additions & 5 deletions homeassistant/components/scene/wink.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ def async_added_to_hass(self):
"""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()