Skip to content

Commit d6db50f

Browse files
authored
Add discovery support to Xbox integration (home-assistant#154912)
1 parent 84d9fa3 commit d6db50f

File tree

4 files changed

+34
-1
lines changed

4 files changed

+34
-1
lines changed

homeassistant/components/xbox/manifest.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,22 @@
44
"codeowners": ["@hunterjm"],
55
"config_flow": true,
66
"dependencies": ["auth", "application_credentials"],
7+
"dhcp": [
8+
{
9+
"hostname": "xbox*"
10+
}
11+
],
712
"documentation": "https://www.home-assistant.io/integrations/xbox",
813
"iot_class": "cloud_polling",
9-
"requirements": ["xbox-webapi==2.1.0"]
14+
"requirements": ["xbox-webapi==2.1.0"],
15+
"ssdp": [
16+
{
17+
"modelName": "Xbox 360",
18+
"manufacturer": "Microsoft Corporation"
19+
},
20+
{
21+
"modelName": "Xbox One",
22+
"manufacturer": "Microsoft Corporation"
23+
}
24+
]
1025
}

homeassistant/components/xbox/strings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
"data_description": {
1010
"implementation": "[%key:common::config_flow::description::implementation%]"
1111
}
12+
},
13+
"oauth_discovery": {
14+
"description": "Home Assistant has found an Xbox device on your network. Press **Submit** to continue setting up the Xbox integration.",
15+
"title": "Discovered Xbox device"
1216
}
1317
},
1418
"abort": {

homeassistant/generated/dhcp.py

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

homeassistant/generated/ssdp.py

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)