From 8823f8a0ad161dfc81af6e90c61c4dd3db6e9d28 Mon Sep 17 00:00:00 2001 From: James Muscat Date: Tue, 28 Nov 2023 22:11:46 +0000 Subject: [PATCH] Might as well support the `is_at_home` attribute... --- BridgeEmulator/flaskUI/v2restapi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BridgeEmulator/flaskUI/v2restapi.py b/BridgeEmulator/flaskUI/v2restapi.py index 8655eaa12..370b37722 100644 --- a/BridgeEmulator/flaskUI/v2restapi.py +++ b/BridgeEmulator/flaskUI/v2restapi.py @@ -465,7 +465,8 @@ def post(self, resource): objCreation = { "id_v1": new_object_id, "name": postDict["name"], - "type": "geofence_client" + "type": "geofence_client", + "is_at_home": postDict.get("is_at_home", False) } newObject = HueObjects.GeofenceClient(objCreation) bridgeConfig["geofence_clients"][new_object_id] = newObject