mirror of
https://github.com/Andre0512/pyhOn.git
synced 2024-12-22 18:55:32 +00:00
Fix wrong values
This commit is contained in:
parent
83bb99a34e
commit
22276832cd
|
@ -166,3 +166,7 @@ class HonDevice:
|
|||
|
||||
async def update(self):
|
||||
await self.load_attributes()
|
||||
|
||||
@property
|
||||
def data(self):
|
||||
return self.attributes | self.parameters | self._appliance | self._statistics
|
||||
|
|
|
@ -25,7 +25,7 @@ class HonParameterFixed(HonParameter):
|
|||
|
||||
@property
|
||||
def value(self):
|
||||
return self._value
|
||||
return self._value if self._value is not None else "0"
|
||||
|
||||
@value.setter
|
||||
def value(self, value):
|
||||
|
@ -85,7 +85,7 @@ class HonParameterEnum(HonParameter):
|
|||
|
||||
@property
|
||||
def value(self):
|
||||
return self._value
|
||||
return self._value if self._value is not None else self.values[0]
|
||||
|
||||
@value.setter
|
||||
def value(self, value):
|
||||
|
|
Loading…
Reference in a new issue