Skip to content

Commit dfd97f1

Browse files
committed
Added client-wide state hash
1 parent d4d1746 commit dfd97f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

openrgb/orgb.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ def _callback(self, device: int, type: int, data: Any):
411411
self.devices[device] = Device(data, device, self.comms)
412412
else:
413413
self.devices[device]._update(data) # type: ignore
414+
self.state_hash = hash("".join(str(dev.state_hash) for dev in self.devices if dev))
414415
except IndexError:
415416
self.comms.requestDeviceNum()
416417
elif type == utils.PacketType.DEVICE_LIST_UPDATED:

0 commit comments

Comments
 (0)