bm1549 / home-assistant-frigidaire

Custom component for the Frigidaire integration
30 stars 10 forks source link

Update humidifier.py #18

Closed ZachPL closed 2 years ago

ZachPL commented 2 years ago

Added modes for AUTO and Quiet humidifier modes, the mode codes were added previously to the frigidaire library, not entirely sure why they were not added here.

Also not sure if MODE_SLEEP is best used for quiet, but that is what I have it set to for now and it at least doesn't error.

gazpachoking commented 2 years ago

The reason I didn't add this when adding the underlying codes to the frigidaire library is that not all (including my) dehumidifier have these extra modes. I wasn't sure how to dynamically detect what modes were supported and show only the appropriate ones. I'll have to test on mine what happens when you try to set an unsupported mode. Hopefully it errors gracefully.