Kaynağa Gözat

Bug-Fix: Warning messages on pure RX content eliminated

tags/v1.2.1^0
Dirk Alders 1 yıl önce
ebeveyn
işleme
c7fcdfe9b4
3 değiştirilmiş dosya ile 8 ekleme ve 4 silme
  1. 4
    1
      function/videv.py
  2. 1
    1
      report
  3. 3
    2
      smart_brain.py

+ 4
- 1
function/videv.py Dosyayı Görüntüle

@@ -36,6 +36,8 @@ class base(mqtt_base):
36 36
         """
37 37
         listen to data changes of ext_device and update videv information
38 38
         """
39
+        if my_key not in self.keys():
40
+            self[my_key] = None
39 41
         if ext_device.__class__.__name__ == "group":
40 42
             # store information to identify callback from ext_device
41 43
             self.__display_dict__[(id(ext_device[0]), ext_key)] = my_key
@@ -66,7 +68,8 @@ class base(mqtt_base):
66 68
         """
67 69
         listen to videv information and pass data to ext_device
68 70
         """
69
-        self[my_key] = None
71
+        if my_key not in self.keys():
72
+            self[my_key] = None
70 73
         # store information to identify callback from videv
71 74
         self.__control_dict__[my_key] = (ext_device, ext_key, on_change_only)
72 75
         # add callback for videv changes

+ 1
- 1
report

@@ -1 +1 @@
1
-Subproject commit e2392c9f28d88ee54463681850acf95ae496c9a0
1
+Subproject commit b53dd30eae1d679b7eec4999bec50aed55bc105b

+ 3
- 2
smart_brain.py Dosyayı Görüntüle

@@ -14,7 +14,7 @@ logger = logging.getLogger(config.APP_NAME)
14 14
 
15 15
 VERS_MAJOR = 1
16 16
 VERS_MINOR = 2
17
-VERS_PATCH = 0
17
+VERS_PATCH = 1
18 18
 
19 19
 INFO_TOPIC = "__info__"
20 20
 INFO_DATA = {
@@ -40,7 +40,8 @@ def __info_publisher__(client, userdata, message):
40 40
 
41 41
 if __name__ == "__main__":
42 42
     if config.DEBUG:
43
-        report.appLoggingConfigure(None, None, ((config.APP_NAME, logging.DEBUG), ), fmt=report.SHORT_FMT, host='localhost', port=19996)
43
+        report.appLoggingConfigure(None, 'stdout', ((config.APP_NAME, logging.DEBUG), ),
44
+                                   target_level=logging.WARNING, fmt=report.SHORT_FMT, host='localhost', port=19996)
44 45
     else:
45 46
         report.stdoutLoggingConfigure(((config.APP_NAME, logging.WARNING), ), report.SHORT_FMT)
46 47
     #

Loading…
İptal
Kaydet