re-run through ruff formatter

This commit is contained in:
2025-01-15 12:40:31 +00:00
parent 7b725a51e3
commit da1d5132a8
28 changed files with 608 additions and 609 deletions

View File

@@ -17,33 +17,33 @@ class Command(IRemote):
Returns a Command class of a kind.
"""
CMD_cls = type(
f"Command{remote.kind}",
f'Command{remote.kind}',
(cls,),
{
**{
param: action_fn(param) for param in ["show", "shutdown", "restart"]
param: action_fn(param) for param in ['show', 'shutdown', 'restart']
},
"hide": action_fn("show", val=0),
'hide': action_fn('show', val=0),
},
)
return CMD_cls(remote)
def __str__(self):
return f"{type(self).__name__}"
return f'{type(self).__name__}'
@property
def identifier(self) -> str:
return "Command"
return 'Command'
def set_showvbanchat(self, val: bool):
self.setter("DialogShow.VBANCHAT", 1 if val else 0)
self.setter('DialogShow.VBANCHAT', 1 if val else 0)
showvbanchat = property(fset=set_showvbanchat)
def set_lock(self, val: bool):
self.setter("lock", 1 if val else 0)
self.setter('lock', 1 if val else 0)
lock = property(fset=set_lock)
def reset(self):
self._remote.apply_config("reset")
self._remote.apply_config('reset')