mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-24 11:47:03 -04:00
Lock attributes
This commit is contained in:
parent
f6139db0b5
commit
1ca89995a2
2 changed files with 26 additions and 5 deletions
|
@ -330,7 +330,7 @@ class HonAppliance:
|
|||
command: HonCommand = self.commands.get(command_name)
|
||||
for key, value in self.attributes.get("parameters", {}).items():
|
||||
if isinstance(value, str) and (new := command.parameters.get(key)):
|
||||
self.attributes["parameters"][key].value = str(new.intern_value)
|
||||
self.attributes["parameters"][key].update(str(new.intern_value), shield=True)
|
||||
|
||||
def sync_command(self, main, target=None) -> None:
|
||||
base: HonCommand = self.commands.get(main)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue