mirror of
https://github.com/micahqcade/custom_vesync.git
synced 2025-02-11 09:39:00 +01:00
Add Warm Mist attributes (#13)
* Add Warm Mist attributes These could possibly be added as sensor entities in their own right. I cannot test them but there was a comment by someone on the original PR about this. Ideally, I suggest, these should be number and binary entities as well but I was going to check the attributes appeared first. * fix style Co-authored-by: Vincent Le Bourlot <vlebourl@gmail.com>
This commit is contained in:
parent
616f0db5ce
commit
35370cbcae
@ -134,6 +134,14 @@ class VeSyncHumidifierHA(VeSyncDevice, HumidifierEntity):
|
||||
if "mist_level" in self.smarthumidifier.details:
|
||||
attr["mist_level"] = self.smarthumidifier.details["mist_level"]
|
||||
|
||||
if "warm_mist_level" in self.smarthumidifier.details:
|
||||
attr["warm_mist_level"] = self.smarthumidifier.details["warm_mist_level"]
|
||||
|
||||
if "warm_mist_enabled" in self.smarthumidifier.details:
|
||||
attr["warm_mist_enabled"] = self.smarthumidifier.details[
|
||||
"warm_mist_enabled"
|
||||
]
|
||||
|
||||
return attr
|
||||
|
||||
def set_humidity(self, humidity):
|
||||
|
Loading…
x
Reference in New Issue
Block a user