maximvelichko / pyvera

A python library to control devices via the Vera hub
GNU General Public License v2.0
26 stars 31 forks source link

Merge pull request #148 from pavoni/handle_comms_failure_better #150

Closed sresam89 closed 3 years ago

sresam89 commented 3 years ago

Since the code has been using the following line (getting the hash of the password as well) python was not able to handle the character length more than 254 (which it is usually when doorcode is programmed)

Original code on init.py line 1210 _, _, pin, name = code_addrs[2:]

error without the fix Problem parsing pin code string 1,1,2021-08-12 16:35:38,2021-09-01 18:52:22,****,Member,2E65312E07791C05095B;: too many values to unpack (expected 4)

Suggested code: (to remove the hash, thereby eliminating the error of character length) _, _, pin, name = code_addrs[2:6]

sresam89 commented 3 years ago

Closing this since starting another with a fork