mirror of
https://github.com/Andre0512/pyhOn.git
synced 2025-05-29 14:05:20 -04:00
Make 'code' attribute really optional
This commit is contained in:
parent
dfbc24452b
commit
9f130e2e85
4 changed files with 3 additions and 4 deletions
|
@ -276,7 +276,7 @@ class HonAppliance:
|
|||
extra = {n: c.data for n, c in self._commands.items() if c.data}
|
||||
if extra:
|
||||
data |= {"extra_command_data": extra}
|
||||
for sensible in ["PK", "SK", "serialNumber", "code", "coords", "device"]:
|
||||
for sensible in ["PK", "SK", "serialNumber", "coords", "device"]:
|
||||
data.get("appliance", {}).pop(sensible, None)
|
||||
result = helper.pretty_print({"data": data}, whitespace=whitespace)
|
||||
result += helper.pretty_print(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue