From 348ec346690406370b28fc0ed77eeb6a6c690504 Mon Sep 17 00:00:00 2001 From: Nick Mowen Date: Thu, 16 Nov 2023 07:24:31 -0700 Subject: [PATCH] Fix mqtt config validation --- frigate/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/config.py b/frigate/config.py index 74c060a1b..58b212005 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -154,7 +154,7 @@ class MqttConfig(FrigateBaseModel): @field_validator("password", mode="before") @classmethod def validate_password(cls, v, info: ValidationInfo): - if (v is None) != (info.config.get("user") is None): + if (v is None) != (info.data.get("user") is None): raise ValueError("Password must be provided with username.") return v