Skip to content

Commit

Permalink
0.9.9.8 - Bug fix string and int when asking for B0 panel state
Browse files Browse the repository at this point in the history
  • Loading branch information
davesmeghead committed Oct 29, 2024
1 parent b847bcb commit 7252318
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion custom_components/visonic/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
# "trigger",
#]

CLIENT_VERSION = "0.9.9.7"
CLIENT_VERSION = "0.9.9.8"

MAX_CLIENT_LOG_ENTRIES = 300

Expand Down
2 changes: 1 addition & 1 deletion custom_components/visonic/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"loggers": ["visonic"],
"requirements": ["Pillow", "pyserial_asyncio"],
"single_config_entry": false,
"version": "0.9.9.7"
"version": "0.9.9.8"
}
9 changes: 5 additions & 4 deletions custom_components/visonic/pyvisonic.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def convertByteArray(s) -> bytearray:
from pyhelper import (toString, MyChecksumCalc, AlImageManager, ImageRecord, titlecase, AlPanelInterfaceHelper,
AlSensorDeviceHelper, AlSwitchDeviceHelper)

PLUGIN_VERSION = "1.4.3.5"
PLUGIN_VERSION = "1.4.3.6"

# Obfuscate sensitive data, regardless of the other Debug settings.
# Setting this to True limits the logging of messages sent to the panel to CMD or NONE
Expand Down Expand Up @@ -2398,10 +2398,11 @@ def reset_vars():
self.B0_Message_Wanted.update(self.B0_Message_Waiting) # ask again for them
if len(self.B0_Message_Wanted) > 0:
log.debug(f"[_sequencer] ****************************** Asking For B0_Message_Wanted **************************** {self.B0_Message_Wanted} timediff={diff}")
s = self._create_B0_Data_Request(taglist = list(self.B0_Message_Wanted))
self._addMessageToSendList(s)
self.B0_Message_Waiting.update(self.B0_Message_Wanted)
tmp = {pmSendMsgB0[i].data if isinstance(i, str) and i in pmSendMsgB0 else i for i in self.B0_Message_Wanted}
self.B0_Message_Wanted = set()
s = self._create_B0_Data_Request(taglist = list(tmp))
self._addMessageToSendList(s)
self.B0_Message_Waiting.update(tmp)
_last_B0_wanted_request_time = tnow

# Dump all sensors to the file every 60 seconds (1 minute)
Expand Down

0 comments on commit 7252318

Please sign in to comment.