* fix

* Fix

* Fix incorrect default websocket value

* Cleanup value setting
This commit is contained in:
Nicolas Mowen
2025-03-03 16:28:34 -07:00
committed by GitHub
parent 2946c935ee
commit 56079d080d
4 changed files with 12 additions and 11 deletions

View File

@@ -174,7 +174,7 @@ export function useEnabledState(camera: string): {
value: { payload },
send,
} = useWs(`${camera}/enabled/state`, `${camera}/enabled/set`);
return { payload: payload as ToggleableSetting, send };
return { payload: (payload ?? "ON") as ToggleableSetting, send };
}
export function useDetectState(camera: string): {