Bug-Fix: Warning messages on pure RX content eliminated

This commit is contained in:
Dirk Alders 2023-02-15 09:12:05 +01:00
parent f3ed72974e
commit c7fcdfe9b4
3 changed files with 8 additions and 4 deletions

View File

@ -36,6 +36,8 @@ class base(mqtt_base):
"""
listen to data changes of ext_device and update videv information
"""
if my_key not in self.keys():
self[my_key] = None
if ext_device.__class__.__name__ == "group":
# store information to identify callback from ext_device
self.__display_dict__[(id(ext_device[0]), ext_key)] = my_key
@ -66,6 +68,7 @@ class base(mqtt_base):
"""
listen to videv information and pass data to ext_device
"""
if my_key not in self.keys():
self[my_key] = None
# store information to identify callback from videv
self.__control_dict__[my_key] = (ext_device, ext_key, on_change_only)

2
report

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

View File

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