Skip to content

Commit

Permalink
Might as well support the is_at_home attribute...
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesremuscat committed Nov 28, 2023
1 parent 9640ba4 commit 8823f8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion BridgeEmulator/flaskUI/v2restapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8823f8a

Please sign in to comment.