mirror of
https://github.com/blakeblackshear/frigate.git
synced 2024-11-21 19:07:46 +01:00
remove mqtt password from config api (#8757)
This commit is contained in:
parent
614a36af9f
commit
5c4501efbc
@ -1154,6 +1154,9 @@ def end_event(event_id):
|
|||||||
def config():
|
def config():
|
||||||
config = current_app.frigate_config.dict()
|
config = current_app.frigate_config.dict()
|
||||||
|
|
||||||
|
# remove the mqtt password
|
||||||
|
config["mqtt"].pop("password", None)
|
||||||
|
|
||||||
for camera_name, camera in current_app.frigate_config.cameras.items():
|
for camera_name, camera in current_app.frigate_config.cameras.items():
|
||||||
camera_dict = config["cameras"][camera_name]
|
camera_dict = config["cameras"][camera_name]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user