Skip to content

Commit

Permalink
Remove hardware and fix raspberry pi brands in integrations.json (hom…
Browse files Browse the repository at this point in the history
  • Loading branch information
frenck authored Oct 25, 2022
1 parent a98c304 commit 98591cd
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 32 deletions.
5 changes: 0 additions & 5 deletions homeassistant/brands/raspberry.json

This file was deleted.

5 changes: 5 additions & 0 deletions homeassistant/brands/raspberry_pi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"domain": "raspberry_pi",
"name": "Raspberry Pi",
"integrations": ["raspberry_pi", "rpi_camera", "rpi_power", "remote_rpi_gpio"]
}
2 changes: 1 addition & 1 deletion homeassistant/components/remote_rpi_gpio/manifest.json
Original file line number Diff line number Diff line change
@@ -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": [],
Expand Down
25 changes: 2 additions & 23 deletions homeassistant/generated/integrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -4238,7 +4223,7 @@
"config_flow": false,
"iot_class": "local_polling"
},
"raspberry": {
"raspberry_pi": {
"name": "Raspberry Pi",
"integrations": {
"rpi_camera": {
Expand All @@ -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",
Expand Down Expand Up @@ -6183,7 +6163,6 @@
"iot_class": "local_push"
}
},
"hardware": {},
"helper": {
"counter": {
"name": "Counter",
Expand Down
9 changes: 6 additions & 3 deletions script/hassfest/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -131,7 +135,6 @@ def _generate_integrations(

result = {
"integration": {},
"hardware": {},
"helper": {},
"translated_name": set(),
}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 98591cd

Please sign in to comment.