Skip to content

Commit d4d1746

Browse files
committed
Added state_hash property to devices
1 parent 605b5f3 commit d4d1746

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
@@ -200,6 +200,7 @@ def _update(self, data: utils.ControllerData):
200200
self._colors = self.colors[:]
201201
self.active_mode = data.active_mode
202202
self.data = data
203+
self.state_hash = hash(str(data))
203204

204205
def _set_device_color(self, color: utils.RGBColor, fast: bool = False):
205206
'''

0 commit comments

Comments
 (0)