Remove hardware and fix raspberry pi brands in integrations.json (#80970)
This commit is contained in:
parent
a98c304db6
commit
98591cd4b6
5 changed files with 14 additions and 32 deletions
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"domain": "raspberry_pi",
|
||||
"name": "Raspberry Pi",
|
||||
"integrations": ["rpi_camera", "rpi_power", "remote_rpi_gpio"]
|
||||
}
|
5
homeassistant/brands/raspberry_pi.json
Normal file
5
homeassistant/brands/raspberry_pi.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"domain": "raspberry_pi",
|
||||
"name": "Raspberry Pi",
|
||||
"integrations": ["raspberry_pi", "rpi_camera", "rpi_power", "remote_rpi_gpio"]
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"domain": "remote_rpi_gpio",
|
||||
"name": "remote_rpi_gpio",
|
||||
"name": "Raspberry Pi Remote GPIO",
|
||||
"documentation": "https://www.home-assistant.io/integrations/remote_rpi_gpio",
|
||||
"requirements": ["gpiozero==1.6.2", "pigpio==1.78"],
|
||||
"codeowners": [],
|
||||
|
|
|
@ -2057,11 +2057,6 @@
|
|||
"config_flow": true,
|
||||
"iot_class": "cloud_polling"
|
||||
},
|
||||
"hardkernel": {
|
||||
"name": "Hardkernel",
|
||||
"integration_type": "hardware",
|
||||
"config_flow": false
|
||||
},
|
||||
"harman_kardon_avr": {
|
||||
"name": "Harman Kardon AVR",
|
||||
"integration_type": "hub",
|
||||
|
@ -2176,16 +2171,6 @@
|
|||
"config_flow": true,
|
||||
"iot_class": "cloud_polling"
|
||||
},
|
||||
"homeassistant_sky_connect": {
|
||||
"name": "Home Assistant Sky Connect",
|
||||
"integration_type": "hardware",
|
||||
"config_flow": false
|
||||
},
|
||||
"homeassistant_yellow": {
|
||||
"name": "Home Assistant Yellow",
|
||||
"integration_type": "hardware",
|
||||
"config_flow": false
|
||||
},
|
||||
"homematic": {
|
||||
"name": "Homematic",
|
||||
"integrations": {
|
||||
|
@ -4238,7 +4223,7 @@
|
|||
"config_flow": false,
|
||||
"iot_class": "local_polling"
|
||||
},
|
||||
"raspberry": {
|
||||
"raspberry_pi": {
|
||||
"name": "Raspberry Pi",
|
||||
"integrations": {
|
||||
"rpi_camera": {
|
||||
|
@ -4254,15 +4239,10 @@
|
|||
"remote_rpi_gpio": {
|
||||
"integration_type": "hub",
|
||||
"iot_class": "local_push",
|
||||
"name": "remote_rpi_gpio"
|
||||
"name": "Raspberry Pi Remote GPIO"
|
||||
}
|
||||
}
|
||||
},
|
||||
"raspberry_pi": {
|
||||
"name": "Raspberry Pi",
|
||||
"integration_type": "hardware",
|
||||
"config_flow": false
|
||||
},
|
||||
"raspyrfm": {
|
||||
"name": "RaspyRFM",
|
||||
"integration_type": "hub",
|
||||
|
@ -6183,7 +6163,6 @@
|
|||
"iot_class": "local_push"
|
||||
}
|
||||
},
|
||||
"hardware": {},
|
||||
"helper": {
|
||||
"counter": {
|
||||
"name": "Counter",
|
||||
|
|
|
@ -104,7 +104,11 @@ def _populate_brand_integrations(
|
|||
brand_metadata.setdefault("integrations", {})
|
||||
for domain in sub_integrations:
|
||||
integration = integrations.get(domain)
|
||||
if not integration or integration.integration_type in ("entity", "system"):
|
||||
if not integration or integration.integration_type in (
|
||||
"entity",
|
||||
"hardware",
|
||||
"system",
|
||||
):
|
||||
continue
|
||||
metadata = {
|
||||
"integration_type": integration.integration_type,
|
||||
|
@ -131,7 +135,6 @@ def _generate_integrations(
|
|||
|
||||
result = {
|
||||
"integration": {},
|
||||
"hardware": {},
|
||||
"helper": {},
|
||||
"translated_name": set(),
|
||||
}
|
||||
|
@ -176,7 +179,7 @@ def _generate_integrations(
|
|||
result["integration"][domain] = metadata
|
||||
else: # integration
|
||||
integration = integrations[domain]
|
||||
if integration.integration_type in ("entity", "system"):
|
||||
if integration.integration_type in ("entity", "system", "hardware"):
|
||||
continue
|
||||
|
||||
if integration.translated_name:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue