Skip to content

Commit

Permalink
Fix: Add current humidity into config flow. #159
Browse files Browse the repository at this point in the history
  • Loading branch information
xZetsubou committed Mar 5, 2024
1 parent 81c9651 commit 97868af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions custom_components/localtuya/humidifier.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Platform to locally control Tuya-based button devices."""

import logging
from functools import partial
from .config_flow import _col_to_select
Expand Down Expand Up @@ -36,6 +37,9 @@ def flow_schema(dps):
"""Return schema used in config flow."""
return {
vol.Optional(CONF_HUMIDIFIER_SET_HUMIDITY_DP): _col_to_select(dps, is_dps=True),
vol.Optional(CONF_HUMIDIFIER_CURRENT_HUMIDITY_DP): _col_to_select(
dps, is_dps=True
),
vol.Optional(CONF_HUMIDIFIER_MODE_DP): _col_to_select(dps, is_dps=True),
vol.Required(ATTR_MIN_HUMIDITY, default=DEFAULT_MIN_HUMIDITY): int,
vol.Required(ATTR_MAX_HUMIDITY, default=DEFAULT_MAX_HUMIDITY): int,
Expand Down

0 comments on commit 97868af

Please sign in to comment.