mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add Apple brand (#79227)
This commit is contained in:
parent
b49d499ab6
commit
62c114e849
@ -106,7 +106,7 @@ repos:
|
|||||||
pass_filenames: false
|
pass_filenames: false
|
||||||
language: script
|
language: script
|
||||||
types: [text]
|
types: [text]
|
||||||
files: ^(homeassistant/.+/manifest\.json|pyproject\.toml|\.pre-commit-config\.yaml|script/gen_requirements_all\.py)$
|
files: ^(homeassistant/.+/manifest\.json|homeassistant/brands/.+\.json|pyproject\.toml|\.pre-commit-config\.yaml|script/gen_requirements_all\.py)$
|
||||||
- id: hassfest
|
- id: hassfest
|
||||||
name: hassfest
|
name: hassfest
|
||||||
entry: script/run-in-env.sh python3 -m script.hassfest
|
entry: script/run-in-env.sh python3 -m script.hassfest
|
||||||
|
11
homeassistant/brands/apple.json
Normal file
11
homeassistant/brands/apple.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"domain": "apple",
|
||||||
|
"name": "Apple",
|
||||||
|
"integrations": [
|
||||||
|
"icloud",
|
||||||
|
"ibeacon",
|
||||||
|
"apple_tv",
|
||||||
|
"homekit",
|
||||||
|
"homekit_controller"
|
||||||
|
]
|
||||||
|
}
|
@ -189,10 +189,34 @@
|
|||||||
"iot_class": null,
|
"iot_class": null,
|
||||||
"name": "Home Assistant API"
|
"name": "Home Assistant API"
|
||||||
},
|
},
|
||||||
"apple_tv": {
|
"apple": {
|
||||||
"config_flow": true,
|
"name": "Apple",
|
||||||
"iot_class": "local_push",
|
"integrations": {
|
||||||
"name": "Apple TV"
|
"icloud": {
|
||||||
|
"config_flow": true,
|
||||||
|
"iot_class": "cloud_polling",
|
||||||
|
"name": "Apple iCloud"
|
||||||
|
},
|
||||||
|
"ibeacon": {
|
||||||
|
"config_flow": true,
|
||||||
|
"iot_class": "local_push",
|
||||||
|
"name": "iBeacon Tracker"
|
||||||
|
},
|
||||||
|
"apple_tv": {
|
||||||
|
"config_flow": true,
|
||||||
|
"iot_class": "local_push",
|
||||||
|
"name": "Apple TV"
|
||||||
|
},
|
||||||
|
"homekit": {
|
||||||
|
"config_flow": true,
|
||||||
|
"iot_class": "local_push",
|
||||||
|
"name": "HomeKit"
|
||||||
|
},
|
||||||
|
"homekit_controller": {
|
||||||
|
"config_flow": true,
|
||||||
|
"iot_class": "local_push"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"application_credentials": {
|
"application_credentials": {
|
||||||
"config_flow": false,
|
"config_flow": false,
|
||||||
@ -1811,15 +1835,6 @@
|
|||||||
"iot_class": null,
|
"iot_class": null,
|
||||||
"name": "Home Assistant Alerts"
|
"name": "Home Assistant Alerts"
|
||||||
},
|
},
|
||||||
"homekit": {
|
|
||||||
"config_flow": true,
|
|
||||||
"iot_class": "local_push",
|
|
||||||
"name": "HomeKit"
|
|
||||||
},
|
|
||||||
"homekit_controller": {
|
|
||||||
"config_flow": true,
|
|
||||||
"iot_class": "local_push"
|
|
||||||
},
|
|
||||||
"homematic": {
|
"homematic": {
|
||||||
"config_flow": false,
|
"config_flow": false,
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
@ -1919,16 +1934,6 @@
|
|||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"name": "Jandy iAqualink"
|
"name": "Jandy iAqualink"
|
||||||
},
|
},
|
||||||
"ibeacon": {
|
|
||||||
"config_flow": true,
|
|
||||||
"iot_class": "local_push",
|
|
||||||
"name": "iBeacon Tracker"
|
|
||||||
},
|
|
||||||
"icloud": {
|
|
||||||
"config_flow": true,
|
|
||||||
"iot_class": "cloud_polling",
|
|
||||||
"name": "Apple iCloud"
|
|
||||||
},
|
|
||||||
"idteck_prox": {
|
"idteck_prox": {
|
||||||
"config_flow": false,
|
"config_flow": false,
|
||||||
"iot_class": "local_push",
|
"iot_class": "local_push",
|
||||||
|
@ -51,10 +51,8 @@ def _validate_brand(
|
|||||||
f"'{sub_integration}' to 'integrations'",
|
f"'{sub_integration}' to 'integrations'",
|
||||||
)
|
)
|
||||||
|
|
||||||
if (
|
if brand.domain in integrations and (
|
||||||
brand.domain in integrations
|
not brand.integrations or brand.domain not in brand.integrations
|
||||||
and not brand.integrations
|
|
||||||
or brand.domain not in brand.integrations
|
|
||||||
):
|
):
|
||||||
config.add_error(
|
config.add_error(
|
||||||
"brand",
|
"brand",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user