bdraco / nexia

Python library for connecting to nexia
Apache License 2.0
21 stars 13 forks source link

nexia.const missing FAN_MODES #1

Closed ryannazaretian closed 4 years ago

ryannazaretian commented 4 years ago

The Home Assistant climate.py tries to import nexia.const.FAN_MODES:

Unable to prepare setup for platform nexia.climate: Platform not found (cannot import name 'FAN_MODES' from 'nexia.const' (/usr/local/lib/python3.7/site-packages/nexia/const.py)).

FAN_MODES should contain ["auto", "on", "circulate"] if I recall correctly.

ryannazaretian commented 4 years ago

Setting the fan mode doesn't work.

I guess instead of setting a constant, you can all the get_fan_modes() from the climate.py

In other words, perhaps this isn't a nexia module bug, but a Home Assistant integration bug.

ryannazaretian commented 4 years ago

Ha, just saw you already fixed this.