Make sure the config_flow key is set for brands (#82038)

Fixes https://github.com/home-assistant/frontend/issues/14376
This commit is contained in:
J. Nick Koston 2022-11-15 11:27:59 -06:00 committed by Franck Nijhof
parent 76cc26ad17
commit 609438d929
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
2 changed files with 88 additions and 2 deletions

View File

@ -159,21 +159,25 @@
"integrations": {
"alexa": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Amazon Alexa"
},
"amazon_polly": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Amazon Polly"
},
"aws": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Amazon Web Services (AWS)"
},
"route53": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "AWS Route53"
}
@ -284,6 +288,7 @@
},
"itunes": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Apple iTunes"
}
@ -336,11 +341,13 @@
"integrations": {
"aruba": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Aruba"
},
"cppm_tracker": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Aruba ClearPass"
}
@ -363,11 +370,13 @@
"integrations": {
"asterisk_cdr": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Asterisk Call Detail Records"
},
"asterisk_mbox": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_push",
"name": "Asterisk Voicemail"
}
@ -710,16 +719,19 @@
"integrations": {
"cisco_ios": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Cisco IOS"
},
"cisco_mobility_express": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Cisco Mobility Express"
},
"cisco_webex_teams": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Cisco Webex Teams"
}
@ -748,11 +760,13 @@
"integrations": {
"clicksend": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "ClickSend SMS"
},
"clicksend_tts": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "ClickSend TTS"
}
@ -944,6 +958,7 @@
"integrations": {
"denon": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Denon Network Receivers"
},
@ -1245,6 +1260,7 @@
"integrations": {
"avea": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Elgato Avea"
},
@ -1291,11 +1307,13 @@
"integrations": {
"emoncms": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Emoncms"
},
"emoncms_history": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Emoncms History"
}
@ -1377,6 +1395,7 @@
},
"epsonworkforce": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Epson Workforce"
}
@ -1387,11 +1406,13 @@
"integrations": {
"eq3btsmart": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "eQ-3 Bluetooth Smart Thermostats"
},
"maxcube": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "eQ-3 MAX!"
}
@ -1480,15 +1501,18 @@
"integrations": {
"ffmpeg": {
"integration_type": "hub",
"config_flow": false,
"name": "FFmpeg"
},
"ffmpeg_motion": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "calculated",
"name": "FFmpeg Motion"
},
"ffmpeg_noise": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "calculated",
"name": "FFmpeg Noise"
}
@ -1871,11 +1895,13 @@
"integrations": {
"gc100": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Global Cach\u00e9 GC-100"
},
"itach": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "assumed_state",
"name": "Global Cach\u00e9 iTach TCP/IP to IR"
}
@ -1910,26 +1936,31 @@
"integrations": {
"google_assistant": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Google Assistant"
},
"google_cloud": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Google Cloud Platform"
},
"google_domains": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_polling",
"name": "Google Domains"
},
"google_maps": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_polling",
"name": "Google Maps"
},
"google_pubsub": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Google Pub/Sub"
},
@ -1941,6 +1972,7 @@
},
"google_translate": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Google Translate Text-to-Speech"
},
@ -1951,6 +1983,7 @@
},
"google_wifi": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Google Wifi"
},
@ -2119,11 +2152,13 @@
"integrations": {
"hikvision": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_push",
"name": "Hikvision"
},
"hikvisioncam": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Hikvision"
}
@ -2176,6 +2211,7 @@
"integrations": {
"homematic": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_push",
"name": "Homematic"
},
@ -2204,6 +2240,7 @@
},
"evohome": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_polling",
"name": "Honeywell Total Connect Comfort (Europe)"
},
@ -2297,11 +2334,13 @@
"integrations": {
"watson_iot": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "IBM Watson IoT Platform"
},
"watson_tts": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "IBM Watson TTS"
}
@ -2342,6 +2381,7 @@
"integrations": {
"symfonisk": {
"integration_type": "virtual",
"config_flow": false,
"supported_by": "sonos",
"name": "IKEA SYMFONISK"
},
@ -2720,6 +2760,7 @@
"integrations": {
"lg_netcast": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "LG Netcast"
},
@ -2855,6 +2896,7 @@
},
"ue_smart_radio": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_polling",
"name": "Logitech UE Smart Radio"
},
@ -2901,6 +2943,7 @@
"integrations": {
"lutron": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Lutron"
},
@ -2912,6 +2955,7 @@
},
"homeworks": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_push",
"name": "Lutron Homeworks"
}
@ -3021,6 +3065,7 @@
},
"raincloud": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_polling",
"name": "Melnor RainCloud"
}
@ -3097,31 +3142,37 @@
},
"azure_service_bus": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Azure Service Bus"
},
"microsoft_face_detect": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Microsoft Face Detect"
},
"microsoft_face_identify": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Microsoft Face Identify"
},
"microsoft_face": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Microsoft Face"
},
"microsoft": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Microsoft Text-to-Speech (TTS)"
},
"msteams": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Microsoft Teams"
},
@ -3133,6 +3184,7 @@
},
"xbox_live": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_polling",
"name": "Xbox Live"
}
@ -3260,6 +3312,7 @@
"integrations": {
"manual_mqtt": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_push",
"name": "Manual MQTT Alarm Control Panel"
},
@ -3271,21 +3324,25 @@
},
"mqtt_eventstream": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "MQTT Eventstream"
},
"mqtt_json": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_push",
"name": "MQTT JSON"
},
"mqtt_room": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_push",
"name": "MQTT Room Presence"
},
"mqtt_statestream": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_push",
"name": "MQTT Statestream"
}
@ -3404,6 +3461,7 @@
},
"netgear_lte": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "NETGEAR LTE"
}
@ -3765,11 +3823,13 @@
"integrations": {
"luci": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "OpenWrt (luci)"
},
"ubus": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "OpenWrt (ubus)"
}
@ -3846,6 +3906,7 @@
"integrations": {
"panasonic_bluray": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Panasonic Blu-Ray Player"
},
@ -4140,6 +4201,7 @@
"integrations": {
"qnap": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "QNAP"
},
@ -4228,6 +4290,7 @@
"integrations": {
"rpi_camera": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Raspberry Pi Camera"
},
@ -4238,6 +4301,7 @@
},
"remote_rpi_gpio": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_push",
"name": "Raspberry Pi Remote GPIO"
}
@ -4437,11 +4501,13 @@
"integrations": {
"russound_rio": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_push",
"name": "Russound RIO"
},
"russound_rnet": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Russound RNET"
}
@ -4464,6 +4530,7 @@
"integrations": {
"familyhub": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Samsung Family Hub"
},
@ -4845,6 +4912,7 @@
},
"solaredge_local": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "SolarEdge Local"
}
@ -4908,6 +4976,7 @@
},
"sony_projector": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Sony Projector"
},
@ -5121,6 +5190,7 @@
"integrations": {
"synology_chat": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Synology Chat"
},
@ -5132,6 +5202,7 @@
},
"synology_srm": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Synology SRM"
}
@ -5218,11 +5289,13 @@
"integrations": {
"telegram": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_polling",
"name": "Telegram"
},
"telegram_bot": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Telegram bot"
}
@ -5239,6 +5312,7 @@
},
"tellstick": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "assumed_state",
"name": "TellStick"
}
@ -5522,11 +5596,13 @@
},
"twilio_call": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Twilio Call"
},
"twilio_sms": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Twilio SMS"
}
@ -5555,6 +5631,7 @@
"integrations": {
"ultraloq": {
"integration_type": "virtual",
"config_flow": false,
"iot_standards": [
"zwave"
],
@ -5573,11 +5650,13 @@
},
"unifi_direct": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "UniFi AP"
},
"unifiled": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "UniFi LED"
},
@ -5754,6 +5833,7 @@
"integrations": {
"vlc": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "VLC media player"
},
@ -5978,11 +6058,13 @@
},
"xiaomi_tv": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "assumed_state",
"name": "Xiaomi TV"
},
"xiaomi": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Xiaomi"
}
@ -6040,11 +6122,13 @@
"integrations": {
"yandex_transport": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_polling",
"name": "Yandex Transport"
},
"yandextts": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "cloud_push",
"name": "Yandex TTS"
}
@ -6061,6 +6145,7 @@
},
"yeelightsunflower": {
"integration_type": "hub",
"config_flow": false,
"iot_class": "local_polling",
"name": "Yeelight Sunflower"
}

View File

@ -113,8 +113,9 @@ def _populate_brand_integrations(
metadata = {
"integration_type": integration.integration_type,
}
if integration.config_flow:
metadata["config_flow"] = integration.config_flow
# Always set the config_flow key to avoid breaking the frontend
# https://github.com/home-assistant/frontend/issues/14376
metadata["config_flow"] = bool(integration.config_flow)
if integration.iot_class:
metadata["iot_class"] = integration.iot_class
if integration.supported_by: