fix: fix miot cloud and mdns error (#637)

* fix: fix miot cloud state error

* style: code format
This commit is contained in:
Paul Shawn
2025-01-13 11:23:53 +08:00
committed by GitHub
parent 045528fbf2
commit 3b89536bda
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ class MipsServiceData:
self.type = service_info.type
self.server = service_info.server or ''
# Parse profile
self.did = str(int.from_bytes(self.profile_bin[1:9]))
self.did = str(int.from_bytes(self.profile_bin[1:9], byteorder='big'))
self.group_id = binascii.hexlify(
self.profile_bin[9:17][::-1]).decode('utf-8')
self.role = int(self.profile_bin[20] >> 4)