Skip to content

Commit

Permalink
Make MQTT auth error message simpler
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya committed Jan 19, 2024
1 parent affe9e0 commit 01a4a6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ecowitt2mqtt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def validate_mqtt_auth(cls, data: dict[str, Any]) -> dict[str, Any]:
if (data.get(CONF_MQTT_USERNAME) is None) != (
data.get(CONF_MQTT_PASSWORD) is None
):
raise ValueError("MQTT auth must be both fully present or fully absent")
raise ValueError("Invalid MQTT auth configuration")
return data

validate_mqtt_retain = field_validator("mqtt_retain", mode="before")(
Expand Down

0 comments on commit 01a4a6a

Please sign in to comment.