Skip to content

Commit

Permalink
add owner to bridge entertainment resource
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusmotea committed Mar 6, 2023
1 parent 5faf601 commit 958226f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions BridgeEmulator/flaskUI/v2restapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,16 +59,21 @@ def authorizeV2(headers):
return {"user": bridgeConfig["apiUsers"][headers["hue-application-key"]]}
return []


def v2BridgeEntertainment():
return {"id": "57a9ebc9-406d-4a29-a4ff-42acee9e9be7",
"id_v1": "",
"proxy": True,
"owner": {
"rid": str(uuid.uuid5(uuid.NAMESPACE_URL, bridgeConfig["config"]["bridgeid"] + 'device')),
"rtype": "device"
},
"renderer": False,
"proxy": True,
"equalizer": False,
"max_streams": 1,
"type": "entertainment"
}



def v2HomeKit():
return {"id": str(uuid.uuid5(uuid.NAMESPACE_URL, bridgeConfig["config"]["bridgeid"] + 'homekit')),
"status": "unpaired",
Expand Down

0 comments on commit 958226f

Please sign in to comment.