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:
Brian Orpin 2022-04-08 14:46:42 +01:00 committed by GitHub
parent 616f0db5ce
commit 35370cbcae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):