We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4d1746 commit 809995eCopy full SHA for 809995e
openrgb/orgb.py
@@ -643,3 +643,11 @@ def ee_devices(self):
643
control mode. These devices are suitable to use with an effects engine.
644
'''
645
return [dev for dev in self.devices for mode in dev.modes if mode.name.lower() == 'direct']
646
+
647
+ @property
648
+ def state_hash(self):
649
+ '''
650
+ A hash of the current state of all devices, for use in tracking
651
+ changes. Note that python's hash function is not process-stable.
652
653
+ return hash("".join(str(dev.state_hash) for dev in self.devices))
0 commit comments