Browse Source

Bug-Fix: day_state

tags/v1.2.3^0
Dirk Alders 1 year ago
parent
commit
ce737b42d8
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      function/modules.py
  2. 1
    1
      smart_brain.py

+ 1
- 1
function/modules.py View File

301
                 break
301
                 break
302
         self.set(self.KEY_MOTION_SENSOR % sensor_index, data)
302
         self.set(self.KEY_MOTION_SENSOR % sensor_index, data)
303
         # auto light on with state sunset -> time_offset_sunrise=60 (longer sunset) and time_offset_sunset=-60 (longer sunset)
303
         # auto light on with state sunset -> time_offset_sunrise=60 (longer sunset) and time_offset_sunset=-60 (longer sunset)
304
-        if day_state(None, None, 60, -60).get_state() == self.day_status.KEY_SUNSET:
304
+        if day_state(None, None, 60, -60).get_state() == day_state.KEY_SUNSET:
305
             if data is True:
305
             if data is True:
306
                 logger.info("%s: Motion detected - Switching on main light %s", device.topic, self.sw_device.topic)
306
                 logger.info("%s: Motion detected - Switching on main light %s", device.topic, self.sw_device.topic)
307
                 self.sw_method(True)
307
                 self.sw_method(True)

+ 1
- 1
smart_brain.py View File

13
 
13
 
14
 VERS_MAJOR = 1
14
 VERS_MAJOR = 1
15
 VERS_MINOR = 2
15
 VERS_MINOR = 2
16
-VERS_PATCH = 2
16
+VERS_PATCH = 3
17
 
17
 
18
 INFO_TOPIC = "__info__"
18
 INFO_TOPIC = "__info__"
19
 INFO_DATA = {
19
 INFO_DATA = {

Loading…
Cancel
Save