1
0
mirror of https://github.com/mjg59/python-broadlink.git synced 2024-11-10 18:00:12 +01:00

Update packet count in the authentication step

This commit is contained in:
Felipe Martins Diel 2020-10-21 01:05:45 -03:00 committed by Matthew Garrett
parent 1c5ba74f46
commit 6f1f976e2f

View File

@ -195,6 +195,7 @@ class device:
if len(key) % 16 != 0:
return False
self.count = int.from_bytes(response[0x28:0x30], "little")
self.id = payload[0x03::-1]
self.update_aes(key)
return True