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:
parent
8862be5c05
commit
e9e14e82d2
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user