diff --git a/homeassistant/components/demo.py b/homeassistant/components/demo.py index d4538f6815d..e382ebb0abc 100644 --- a/homeassistant/components/demo.py +++ b/homeassistant/components/demo.py @@ -70,6 +70,24 @@ def setup(hass, config): }] }}}) + # Setup scenes + bootstrap.setup_component( + hass, 'scene', + {'scene': [ + {'name': 'Romantic lights', + 'entities': { + lights[0]: True, + lights[1]: {'state': 'on', 'xy_color': [0.33, 0.66], + 'brightness': 200}, + }}, + {'name': 'Switch on and off', + 'entities': { + switches[0]: True, + switches[1]: False, + }}, + ] + }) + # Setup fake device tracker hass.states.set("device_tracker.paulus", "home", {ATTR_ENTITY_PICTURE: diff --git a/homeassistant/components/scene.py b/homeassistant/components/scene.py index e8db3489290..63ec79e0a94 100644 --- a/homeassistant/components/scene.py +++ b/homeassistant/components/scene.py @@ -103,7 +103,6 @@ class Scene(ToggleDevice): self.scene_config = scene_config self.is_active = False - self.active_requested = False self.prev_states = None self.hass.states.track_change(