mute prop added to dca class

mute tests added

patch bump
This commit is contained in:
onyx-and-iris
2022-11-10 12:10:01 +00:00
parent e7d38bb9d7
commit a09b07e1c2
4 changed files with 43 additions and 1 deletions

View File

@@ -37,6 +37,14 @@ class DCA(IDCA):
def on(self, val: bool):
self.setter("on", 1 if val else 0)
@property
def mute(self) -> bool:
return not self.on
@mute.setter
def mute(self, val: bool):
self.on = not val
@property
def name(self) -> str:
return self.getter("config/name")[0]