Commit 3f6c685b authored by Rob Connolly's avatar Rob Connolly

Oops.

parent c9141184
......@@ -48,7 +48,7 @@ class BrightnessControlledMotionLight(MotionLight):
self.log("Last door is: {}".format(self.last_door))
def motion_callback(self, entity, attribute, old, new, kwargs):
if self.is_light_times() and self.get_state(entity=self.door) == "off":
if self.is_light_times() and self.get_state(entity=self.light) == "off":
#if self.now_is_between("07:00:00", "20:00:00") or
if self.last_door != "Bedroom":
self.turn_on(self.light, brightness_pct = 100)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment