added strip/bus device mixins.

device_prop added to meta

README, CHANGELOG updated to reflect changes.

minor version bump

fixes #3
This commit is contained in:
onyx-and-iris
2022-10-11 12:53:08 +01:00
parent 816fd76213
commit f4fc58cea0
6 changed files with 145 additions and 22 deletions

View File

@@ -42,3 +42,12 @@ def bus_mode_prop(param):
self.setter(param, 1 if val else 0)
return property(fget, fset)
def device_prop(param):
"""meta function for strip device parameters"""
def fset(self, val: str):
self.setter(param, val)
return property(fset=fset)