Skip to content

Commit

Permalink
The Air Humidifier CA supports the operation mode "auto" - the standa…
Browse files Browse the repository at this point in the history
…rd version doesn't
  • Loading branch information
syssi committed Mar 21, 2018
1 parent 37ab4a5 commit 4e393ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions homeassistant/components/fan/xiaomi_miio.py
Original file line number Diff line number Diff line change
Expand Up @@ -713,12 +713,12 @@ def __init__(self, name, device, model, unique_id):
if self._model == MODEL_AIRHUMIDIFIER_CA:
self._device_features = FEATURE_FLAGS_AIRHUMIDIFIER_CA
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_CA
self._speed_list = [mode.name for mode in OperationMode if
mode.name != 'Auto']
self._speed_list = [mode.name for mode in OperationMode]
else:
self._device_features = FEATURE_FLAGS_AIRHUMIDIFIER
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER
self._speed_list = [mode.name for mode in OperationMode]
self._speed_list = [mode.name for mode in OperationMode if
mode.name != 'Auto']

self._state_attrs.update(
{attribute: None for attribute in self._available_attributes})
Expand Down

0 comments on commit 4e393ba

Please sign in to comment.