Skip to content

Commit

Permalink
Fix raising vol.Invalid during mqtt config validation instead of Valu…
Browse files Browse the repository at this point in the history
  • Loading branch information
jbouwh authored Nov 13, 2023
1 parent feabbfc commit 7ca264e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/mqtt/climate.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def valid_humidity_state_configuration(config: ConfigType) -> ConfigType:
CONF_HUMIDITY_STATE_TOPIC in config
and CONF_HUMIDITY_COMMAND_TOPIC not in config
):
raise ValueError(
raise vol.Invalid(
f"{CONF_HUMIDITY_STATE_TOPIC} cannot be used without"
f" {CONF_HUMIDITY_COMMAND_TOPIC}"
)
Expand Down

0 comments on commit 7ca264e

Please sign in to comment.