mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
parent
e71eb8dfe2
commit
ea8511bcfc
@ -236,7 +236,16 @@ class OptionsFlowHandler(BaseMultiPanFlow, config_entries.OptionsFlow):
|
||||
if not is_hassio(self.hass):
|
||||
return self.async_abort(reason="not_hassio")
|
||||
|
||||
return await self.async_step_on_supervisor()
|
||||
return self.async_abort(
|
||||
reason="disabled_due_to_bug",
|
||||
description_placeholders={
|
||||
"url": "https://developers.home-assistant.io/blog/2022/12/08/multi-pan-rollback"
|
||||
},
|
||||
)
|
||||
|
||||
# pylint: disable=unreachable
|
||||
|
||||
return await self.async_step_on_supervisor() # type: ignore[unreachable]
|
||||
|
||||
async def async_step_on_supervisor(
|
||||
self, user_input: dict[str, Any] | None = None
|
||||
|
@ -32,7 +32,8 @@
|
||||
"addon_set_config_failed": "Failed to set Silicon Labs Multiprotocol configuration.",
|
||||
"addon_start_failed": "Failed to start the Silicon Labs Multiprotocol add-on.",
|
||||
"not_hassio": "The hardware options can only be configured on HassOS installations.",
|
||||
"zha_migration_failed": "The ZHA migration did not succeed."
|
||||
"zha_migration_failed": "The ZHA migration did not succeed.",
|
||||
"disabled_due_to_bug": "The hardware options are temporarily disabled while we fix a bug. [Learn more]({url})"
|
||||
},
|
||||
"progress": {
|
||||
"install_addon": "Please wait while the Silicon Labs Multiprotocol add-on installation finishes. This can take several minutes.",
|
||||
|
@ -6,6 +6,7 @@
|
||||
"addon_install_failed": "Failed to install the Silicon Labs Multiprotocol add-on.",
|
||||
"addon_set_config_failed": "Failed to set Silicon Labs Multiprotocol configuration.",
|
||||
"addon_start_failed": "Failed to start the Silicon Labs Multiprotocol add-on.",
|
||||
"disabled_due_to_bug": "The hardware options are temporarily disabled while we fix a bug. [Learn more]({url})",
|
||||
"not_hassio": "The hardware options can only be configured on HassOS installations.",
|
||||
"zha_migration_failed": "The ZHA migration did not succeed."
|
||||
},
|
||||
|
@ -31,7 +31,8 @@
|
||||
"addon_set_config_failed": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::addon_set_config_failed%]",
|
||||
"addon_start_failed": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::addon_start_failed%]",
|
||||
"not_hassio": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::not_hassio%]",
|
||||
"zha_migration_failed": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::zha_migration_failed%]"
|
||||
"zha_migration_failed": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::zha_migration_failed%]",
|
||||
"disabled_due_to_bug": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::disabled_due_to_bug%]"
|
||||
},
|
||||
"progress": {
|
||||
"install_addon": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::progress::install_addon%]",
|
||||
|
@ -5,6 +5,7 @@
|
||||
"addon_install_failed": "Failed to install the Silicon Labs Multiprotocol add-on.",
|
||||
"addon_set_config_failed": "Failed to set Silicon Labs Multiprotocol configuration.",
|
||||
"addon_start_failed": "Failed to start the Silicon Labs Multiprotocol add-on.",
|
||||
"disabled_due_to_bug": "The hardware options are temporarily disabled while we fix a bug. [Learn more]({url})",
|
||||
"not_hassio": "The hardware options can only be configured on HassOS installations.",
|
||||
"zha_migration_failed": "The ZHA migration did not succeed."
|
||||
},
|
||||
|
@ -31,7 +31,8 @@
|
||||
"addon_set_config_failed": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::addon_set_config_failed%]",
|
||||
"addon_start_failed": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::addon_start_failed%]",
|
||||
"not_hassio": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::not_hassio%]",
|
||||
"zha_migration_failed": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::zha_migration_failed%]"
|
||||
"zha_migration_failed": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::zha_migration_failed%]",
|
||||
"disabled_due_to_bug": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::disabled_due_to_bug%]"
|
||||
},
|
||||
"progress": {
|
||||
"install_addon": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::progress::install_addon%]",
|
||||
|
@ -5,6 +5,7 @@
|
||||
"addon_install_failed": "Failed to install the Silicon Labs Multiprotocol add-on.",
|
||||
"addon_set_config_failed": "Failed to set Silicon Labs Multiprotocol configuration.",
|
||||
"addon_start_failed": "Failed to start the Silicon Labs Multiprotocol add-on.",
|
||||
"disabled_due_to_bug": "The hardware options are temporarily disabled while we fix a bug. [Learn more]({url})",
|
||||
"not_hassio": "The hardware options can only be configured on HassOS installations.",
|
||||
"zha_migration_failed": "The ZHA migration did not succeed."
|
||||
},
|
||||
|
@ -20,6 +20,9 @@ from tests.common import MockConfigEntry, MockModule, mock_integration, mock_pla
|
||||
TEST_DOMAIN = "test"
|
||||
|
||||
|
||||
pytest.skip(reason="Temporarily disabled", allow_module_level=True)
|
||||
|
||||
|
||||
class TestConfigFlow(ConfigFlow, domain=TEST_DOMAIN):
|
||||
"""Handle a config flow for the silabs multiprotocol add-on."""
|
||||
|
||||
|
@ -2,6 +2,8 @@
|
||||
import copy
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components import homeassistant_sky_connect, usb
|
||||
from homeassistant.components.homeassistant_sky_connect.const import DOMAIN
|
||||
from homeassistant.components.zha.core.const import (
|
||||
@ -150,6 +152,7 @@ async def test_config_flow_update_device(hass: HomeAssistant) -> None:
|
||||
assert len(mock_unload_entry.mock_calls) == 1
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="Temporarily disabled")
|
||||
async def test_option_flow_install_multi_pan_addon(
|
||||
hass: HomeAssistant,
|
||||
addon_store_info,
|
||||
@ -240,6 +243,7 @@ def mock_detect_radio_type(radio_type=RadioType.ezsp, ret=True):
|
||||
return detect
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="Temporarily disabled")
|
||||
@patch(
|
||||
"homeassistant.components.zha.radio_manager.ZhaRadioManager.detect_radio_type",
|
||||
mock_detect_radio_type(),
|
||||
|
@ -1,6 +1,8 @@
|
||||
"""Test the Home Assistant Yellow config flow."""
|
||||
from unittest.mock import Mock, patch
|
||||
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.homeassistant_yellow.const import DOMAIN
|
||||
from homeassistant.components.zha.core.const import DOMAIN as ZHA_DOMAIN
|
||||
from homeassistant.core import HomeAssistant
|
||||
@ -59,6 +61,7 @@ async def test_config_flow_single_entry(hass: HomeAssistant) -> None:
|
||||
mock_setup_entry.assert_not_called()
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="Temporarily disabled")
|
||||
async def test_option_flow_install_multi_pan_addon(
|
||||
hass: HomeAssistant,
|
||||
addon_store_info,
|
||||
@ -127,6 +130,7 @@ async def test_option_flow_install_multi_pan_addon(
|
||||
assert result["type"] == FlowResultType.CREATE_ENTRY
|
||||
|
||||
|
||||
@pytest.mark.skip(reason="Temporarily disabled")
|
||||
async def test_option_flow_install_multi_pan_addon_zha(
|
||||
hass: HomeAssistant,
|
||||
addon_store_info,
|
||||
|
Loading…
x
Reference in New Issue
Block a user