mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
The Air Humidifier CA supports the operation mode "auto" - the standard version doesn't
This commit is contained in:
@@ -713,12 +713,12 @@ class XiaomiAirHumidifier(XiaomiGenericDevice):
|
|||||||
if self._model == MODEL_AIRHUMIDIFIER_CA:
|
if self._model == MODEL_AIRHUMIDIFIER_CA:
|
||||||
self._device_features = FEATURE_FLAGS_AIRHUMIDIFIER_CA
|
self._device_features = FEATURE_FLAGS_AIRHUMIDIFIER_CA
|
||||||
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_CA
|
self._available_attributes = AVAILABLE_ATTRIBUTES_AIRHUMIDIFIER_CA
|
||||||
self._speed_list = [mode.name for mode in OperationMode if
|
self._speed_list = [mode.name for mode in OperationMode]
|
||||||
mode.name != 'Auto']
|
|
||||||
else:
|
else:
|
||||||
self._device_features = FEATURE_FLAGS_AIRHUMIDIFIER
|
self._device_features = FEATURE_FLAGS_AIRHUMIDIFIER
|
||||||
self._available_attributes = AVAILABLE_ATTRIBUTES_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(
|
self._state_attrs.update(
|
||||||
{attribute: None for attribute in self._available_attributes})
|
{attribute: None for attribute in self._available_attributes})
|
||||||
|
Reference in New Issue
Block a user