Mark integrations as single_config_entry in manifest [system integrations] (#128201)

mark integrations as single_config_entry in manifest
pull/121970/head^2
Michael 2024-10-11 23:50:44 +02:00 committed by GitHub
parent 07021dbd65
commit 9a59cba7f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
14 changed files with 12 additions and 25 deletions

View File

@ -18,7 +18,4 @@ class HardkernelConfigFlow(ConfigFlow, domain=DOMAIN):
self, data: dict[str, Any] | None = None
) -> ConfigFlowResult:
"""Handle the initial step."""
if self._async_current_entries():
return self.async_abort(reason="single_instance_allowed")
return self.async_create_entry(title="Hardkernel", data={})

View File

@ -6,5 +6,6 @@
"config_flow": false,
"dependencies": ["hardware"],
"documentation": "https://www.home-assistant.io/integrations/hardkernel",
"integration_type": "hardware"
"integration_type": "hardware",
"single_config_entry": true
}

View File

@ -55,9 +55,6 @@ class HomeAssistantGreenConfigFlow(ConfigFlow, domain=DOMAIN):
self, data: dict[str, Any] | None = None
) -> ConfigFlowResult:
"""Handle the initial step."""
if self._async_current_entries():
return self.async_abort(reason="single_instance_allowed")
return self.async_create_entry(title="Home Assistant Green", data={})

View File

@ -6,5 +6,6 @@
"config_flow": false,
"dependencies": ["hardware", "homeassistant_hardware"],
"documentation": "https://www.home-assistant.io/integrations/homeassistant_green",
"integration_type": "hardware"
"integration_type": "hardware",
"single_config_entry": true
}

View File

@ -21,7 +21,6 @@
"abort": {
"not_hassio": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::not_hassio%]",
"read_hw_settings_error": "Failed to read hardware settings",
"single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]",
"write_hw_settings_error": "Failed to write hardware settings"
}
}

View File

@ -77,9 +77,6 @@ class HomeAssistantYellowConfigFlow(BaseFirmwareConfigFlow, domain=DOMAIN):
self, data: dict[str, Any] | None = None
) -> ConfigFlowResult:
"""Handle the initial step."""
if self._async_current_entries():
return self.async_abort(reason="single_instance_allowed")
# We do not actually use any portion of `BaseFirmwareConfigFlow` beyond this
await self._probe_firmware_type()

View File

@ -6,5 +6,6 @@
"config_flow": false,
"dependencies": ["hardware", "homeassistant_hardware"],
"documentation": "https://www.home-assistant.io/integrations/homeassistant_yellow",
"integration_type": "hardware"
"integration_type": "hardware",
"single_config_entry": true
}

View File

@ -20,9 +20,6 @@ class RhasspyConfigFlow(ConfigFlow, domain=DOMAIN):
self, user_input: dict[str, Any] | None = None
) -> ConfigFlowResult:
"""Handle the initial step."""
if self._async_current_entries():
return self.async_abort(reason="single_instance_allowed")
if user_input is None:
return self.async_show_form(step_id="user", data_schema=vol.Schema({}))

View File

@ -5,5 +5,6 @@
"config_flow": true,
"dependencies": ["intent"],
"documentation": "https://www.home-assistant.io/integrations/rhasspy",
"iot_class": "local_push"
"iot_class": "local_push",
"single_config_entry": true
}

View File

@ -4,9 +4,6 @@
"user": {
"description": "Do you want to enable Rhasspy support?"
}
},
"abort": {
"single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]"
}
}
}

View File

@ -37,8 +37,6 @@ class RPiPowerFlow(DiscoveryFlowHandler[Awaitable[bool]], domain=DOMAIN):
self, data: dict[str, Any] | None = None
) -> ConfigFlowResult:
"""Handle a flow initialized by onboarding."""
if self._async_current_entries():
return self.async_abort(reason="single_instance_allowed")
has_devices = await self._discovery_function(self.hass)
if not has_devices:

View File

@ -6,5 +6,6 @@
"documentation": "https://www.home-assistant.io/integrations/rpi_power",
"iot_class": "local_polling",
"loggers": ["rpi_bad_power"],
"requirements": ["rpi-bad-power==0.1.0"]
"requirements": ["rpi-bad-power==0.1.0"],
"single_config_entry": true
}

View File

@ -7,7 +7,6 @@
}
},
"abort": {
"single_instance_allowed": "[%key:common::config_flow::abort::single_instance_allowed%]",
"no_devices_found": "Can't find the system class needed for this component, make sure that your kernel is recent and the hardware is supported"
}
}

View File

@ -5113,7 +5113,8 @@
"name": "Rhasspy",
"integration_type": "hub",
"config_flow": true,
"iot_class": "local_push"
"iot_class": "local_push",
"single_config_entry": true
},
"ridwell": {
"name": "Ridwell",