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

Rename change_name() to set_name() (#382)

This commit is contained in:
Felipe Martins Diel 2020-06-14 11:37:37 -03:00 committed by GitHub
parent 8862be5c05
commit e9e14e82d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,7 +242,7 @@ class device:
payload = self.decrypt(response[0x38:]) payload = self.decrypt(response[0x38:])
return payload[0x4] | payload[0x5] << 8 return payload[0x4] | payload[0x5] << 8
def change_name(self, name): def set_name(self, name):
packet = bytearray(4) packet = bytearray(4)
packet.extend(map(ord, name)) packet.extend(map(ord, name))
response = self.send_packet(0x6a, packet) response = self.send_packet(0x6a, packet)