Mark integrations as single_config_entry in manifest [system integrations] (#128201)
mark integrations as single_config_entry in manifestpull/121970/head^2
parent
07021dbd65
commit
9a59cba7f3
|
@ -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={})
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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={})
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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({}))
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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%]"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue