gvigroux / hon

Support of all Haier, Candy, Hoover appliances integrated in the official hOn mobile app. Direct access to all possible services and parameters
MIT License
118 stars 45 forks source link

conditionally add sensor to washmachine #60

Closed KiraPC closed 1 year ago

KiraPC commented 1 year ago

This PR is intended to fix a bug where the washing machine cannot be loaded cause the class 'EntityCategory' does not exists on homeassistant.const.

I've also add a logic to conditionally add sensors to washing machine based on the keys present inside the coordinator data, this is because my appliance is a Candy washdryer and a lot of keys where not present in the shadow.

Feel free to give feedback

gvigroux commented 1 year ago

I will approve this one as well, but I did a more generic implementation (with such logic) in the Full-Rework branch. Can you please test ?

KiraPC commented 1 year ago

I will approve this one as well, but I did a more generic implementation (with such logic) in the Full-Rework branch. Can you please test ?

Sure, Hope in this weekend