Update flask and restructure into api folder with apis put into separate folders (#10193)

* Update flask

* Update flask and break apart different sections into different files

* formatting

* Fix test and add safety check
This commit is contained in:
Nicolas Mowen
2024-03-02 15:10:37 -07:00
committed by GitHub
parent 0022c1aad0
commit 3c4b1fb6f2
12 changed files with 2951 additions and 2845 deletions

View File

@@ -151,7 +151,6 @@ class MqttConfig(FrigateBaseModel):
@field_validator("password")
def user_requires_pass(cls, v, info: ValidationInfo):
print(f"doing a check where {v} is None and {info.data['user']} is None")
if (v is None) != (info.data["user"] is None):
raise ValueError("Password must be provided with username.")
return v