Sfoglia il codice sorgente

Bug-Fix: day_state

tags/v1.2.3^0
Dirk Alders 1 anno fa
parent
commit
ce737b42d8
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1
    1
      function/modules.py
  2. 1
    1
      smart_brain.py

+ 1
- 1
function/modules.py Vedi File

@@ -301,7 +301,7 @@ class motion_sensor_light(common_base):
301 301
                 break
302 302
         self.set(self.KEY_MOTION_SENSOR % sensor_index, data)
303 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 305
             if data is True:
306 306
                 logger.info("%s: Motion detected - Switching on main light %s", device.topic, self.sw_device.topic)
307 307
                 self.sw_method(True)

+ 1
- 1
smart_brain.py Vedi File

@@ -13,7 +13,7 @@ logger = logging.getLogger(config.APP_NAME)
13 13
 
14 14
 VERS_MAJOR = 1
15 15
 VERS_MINOR = 2
16
-VERS_PATCH = 2
16
+VERS_PATCH = 3
17 17
 
18 18
 INFO_TOPIC = "__info__"
19 19
 INFO_DATA = {

Loading…
Annulla
Salva