Browse Source

Bug-Fix: Warning messages on pure RX content eliminated

tags/v1.2.1^0
Dirk Alders 1 year ago
parent
commit
c7fcdfe9b4
3 changed files with 8 additions and 4 deletions
  1. 4
    1
      function/videv.py
  2. 1
    1
      report
  3. 3
    2
      smart_brain.py

+ 4
- 1
function/videv.py View File

36
         """
36
         """
37
         listen to data changes of ext_device and update videv information
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
         if ext_device.__class__.__name__ == "group":
41
         if ext_device.__class__.__name__ == "group":
40
             # store information to identify callback from ext_device
42
             # store information to identify callback from ext_device
41
             self.__display_dict__[(id(ext_device[0]), ext_key)] = my_key
43
             self.__display_dict__[(id(ext_device[0]), ext_key)] = my_key
66
         """
68
         """
67
         listen to videv information and pass data to ext_device
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
         # store information to identify callback from videv
73
         # store information to identify callback from videv
71
         self.__control_dict__[my_key] = (ext_device, ext_key, on_change_only)
74
         self.__control_dict__[my_key] = (ext_device, ext_key, on_change_only)
72
         # add callback for videv changes
75
         # add callback for videv changes

+ 1
- 1
report

1
-Subproject commit e2392c9f28d88ee54463681850acf95ae496c9a0
1
+Subproject commit b53dd30eae1d679b7eec4999bec50aed55bc105b

+ 3
- 2
smart_brain.py View File

14
 
14
 
15
 VERS_MAJOR = 1
15
 VERS_MAJOR = 1
16
 VERS_MINOR = 2
16
 VERS_MINOR = 2
17
-VERS_PATCH = 0
17
+VERS_PATCH = 1
18
 
18
 
19
 INFO_TOPIC = "__info__"
19
 INFO_TOPIC = "__info__"
20
 INFO_DATA = {
20
 INFO_DATA = {
40
 
40
 
41
 if __name__ == "__main__":
41
 if __name__ == "__main__":
42
     if config.DEBUG:
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
     else:
45
     else:
45
         report.stdoutLoggingConfigure(((config.APP_NAME, logging.WARNING), ), report.SHORT_FMT)
46
         report.stdoutLoggingConfigure(((config.APP_NAME, logging.WARNING), ), report.SHORT_FMT)
46
     #
47
     #

Loading…
Cancel
Save