mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2026-04-18 13:03:31 +00:00
renaem action_prop to action_fn
This commit is contained in:
@@ -16,7 +16,7 @@ def channel_bool_prop(param):
|
||||
)[self.index],
|
||||
"little",
|
||||
)
|
||||
& getattr(self._modes, f'_{param.replace(".", "_").lower()}')
|
||||
& getattr(self._modes, f"_{param.lower()}")
|
||||
== 0
|
||||
)
|
||||
|
||||
@@ -91,8 +91,8 @@ def bus_mode_prop(param):
|
||||
return property(fget, fset)
|
||||
|
||||
|
||||
def action_prop(param, val=1):
|
||||
"""A param that performs an action"""
|
||||
def action_fn(param, val=1):
|
||||
"""A function that performs an action"""
|
||||
|
||||
def fdo(self):
|
||||
self.setter(param, val)
|
||||
|
||||
Reference in New Issue
Block a user