Skip to content

Commit

Permalink
Add missing mode mapping for leshow.humidifier.jsq1 (#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
dext0r committed Feb 14, 2024
1 parent 74bc026 commit be313e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions custom_components/yandex_smart_home/capability_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ class ProgramCapabilityHumidifier(ProgramCapability):
],
const.MODE_INSTANCE_MODE_AUTO: [
humidifier.const.MODE_AUTO,
const.XIAOMI_HUMIDIFIER_CONST_HUMIDITY,
],
const.MODE_INSTANCE_MODE_ECO: [
humidifier.const.MODE_ECO,
Expand Down
4 changes: 3 additions & 1 deletion custom_components/yandex_smart_home/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,8 @@

# https://github.com/home-assistant/core/blob/d5a8f1af1d2dc74a12fb6870a4f1cb5318f88bf9/homeassistant/components/xiaomi_miio/humidifier.py#L316
XIAOMI_HUMIDIFIER_PRESET_MID = 'Mid'
# leshow.humidifier.jsq1
XIAOMI_HUMIDIFIER_CONST_HUMIDITY = 'Const Humidity'

# https://github.com/airens/tion_home_assistant#climateset_fan_mode
TION_FAN_SPEED_1 = '1'
Expand Down Expand Up @@ -746,7 +748,7 @@
FAN_SPEED_HIGHEST = 'highest'

# https://github.com/home-assistant/core/blob/2981d7ed0ec78f2271f5b6fac26a98d1b1b280df/homeassistant/components/esphome/climate.py#L110
FAN_SPEED_QUIET = "quiet"
FAN_SPEED_QUIET = 'quiet'

# https://github.com/humbertogontijo/python-roborock/blob/1616217a06e20d51921de984134555bcc0775a92/roborock/code_mappings.py#L61
CLEANUP_MODE_OFF = 'off'
Expand Down

0 comments on commit be313e3

Please sign in to comment.