mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 13:34:54 +01:00
Fix for two points setting when fan_only_cooling is disabled (#2903)
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io> Co-authored-by: Keith Burzinski <kburzinski@kbx-mbp2021.ad.kbx81.net>
This commit is contained in:
parent
c490388e80
commit
cf5193d3e5
1 changed files with 2 additions and 1 deletions
|
@ -431,7 +431,8 @@ async def to_code(config):
|
||||||
|
|
||||||
heat_cool_mode_available = CONF_HEAT_ACTION in config and CONF_COOL_ACTION in config
|
heat_cool_mode_available = CONF_HEAT_ACTION in config and CONF_COOL_ACTION in config
|
||||||
two_points_available = CONF_HEAT_ACTION in config and (
|
two_points_available = CONF_HEAT_ACTION in config and (
|
||||||
CONF_COOL_ACTION in config or CONF_FAN_ONLY_ACTION in config
|
CONF_COOL_ACTION in config
|
||||||
|
or (config[CONF_FAN_ONLY_COOLING] and CONF_FAN_ONLY_ACTION in config)
|
||||||
)
|
)
|
||||||
|
|
||||||
sens = await cg.get_variable(config[CONF_SENSOR])
|
sens = await cg.get_variable(config[CONF_SENSOR])
|
||||||
|
|
Loading…
Reference in a new issue