mirror of
https://github.com/Andre0512/pyhOn.git
synced 2026-06-19 19:56:57 +02:00
Print all keys
This commit is contained in:
@@ -33,6 +33,13 @@ class HonDevice:
|
||||
return self.data[item]
|
||||
return self.attributes["parameters"].get(item, self.appliance[item])
|
||||
|
||||
def get(self, item, default=None):
|
||||
try:
|
||||
return self[item]
|
||||
except KeyError | IndexError:
|
||||
return default
|
||||
|
||||
|
||||
@property
|
||||
def appliance_model_id(self):
|
||||
return self._appliance.get("applianceModelId")
|
||||
|
||||
Reference in New Issue
Block a user