mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Remove setup of rpi_power from onboarding (#139168)
* Remove setup of rpi_power from onboarding * Remove test
This commit is contained in:
parent
4d6fd1b10f
commit
fc8affd243
@ -1,7 +1,7 @@
|
||||
{
|
||||
"domain": "onboarding",
|
||||
"name": "Home Assistant Onboarding",
|
||||
"after_dependencies": ["backup", "hassio"],
|
||||
"after_dependencies": ["backup"],
|
||||
"codeowners": ["@home-assistant/core"],
|
||||
"dependencies": ["auth", "http", "person"],
|
||||
"documentation": "https://www.home-assistant.io/integrations/onboarding",
|
||||
|
@ -29,7 +29,6 @@ from homeassistant.components.http.view import HomeAssistantView
|
||||
from homeassistant.core import HomeAssistant, callback
|
||||
from homeassistant.exceptions import HomeAssistantError
|
||||
from homeassistant.helpers import area_registry as ar
|
||||
from homeassistant.helpers.hassio import is_hassio
|
||||
from homeassistant.helpers.system_info import async_get_system_info
|
||||
from homeassistant.helpers.translation import async_get_translations
|
||||
from homeassistant.setup import async_setup_component
|
||||
@ -224,16 +223,6 @@ class CoreConfigOnboardingView(_BaseOnboardingView):
|
||||
"shopping_list",
|
||||
]
|
||||
|
||||
# pylint: disable-next=import-outside-toplevel
|
||||
from homeassistant.components import hassio
|
||||
|
||||
if (
|
||||
is_hassio(hass)
|
||||
and (core_info := hassio.get_core_info(hass))
|
||||
and "raspberrypi" in core_info["machine"]
|
||||
):
|
||||
onboard_integrations.append("rpi_power")
|
||||
|
||||
for domain in onboard_integrations:
|
||||
# Create tasks so onboarding isn't affected
|
||||
# by errors in these integrations.
|
||||
|
@ -529,32 +529,6 @@ async def test_onboarding_core_sets_up_radio_browser(
|
||||
assert len(hass.config_entries.async_entries("radio_browser")) == 1
|
||||
|
||||
|
||||
async def test_onboarding_core_sets_up_rpi_power(
|
||||
hass: HomeAssistant,
|
||||
hass_storage: dict[str, Any],
|
||||
hass_client: ClientSessionGenerator,
|
||||
aioclient_mock: AiohttpClientMocker,
|
||||
rpi,
|
||||
mock_default_integrations,
|
||||
) -> None:
|
||||
"""Test that the core step sets up rpi_power on RPi."""
|
||||
mock_storage(hass_storage, {"done": [const.STEP_USER]})
|
||||
|
||||
assert await async_setup_component(hass, "onboarding", {})
|
||||
await hass.async_block_till_done()
|
||||
|
||||
client = await hass_client()
|
||||
|
||||
resp = await client.post("/api/onboarding/core_config")
|
||||
|
||||
assert resp.status == 200
|
||||
|
||||
await hass.async_block_till_done()
|
||||
|
||||
rpi_power_state = hass.states.get("binary_sensor.rpi_power_status")
|
||||
assert rpi_power_state
|
||||
|
||||
|
||||
async def test_onboarding_core_no_rpi_power(
|
||||
hass: HomeAssistant,
|
||||
hass_storage: dict[str, Any],
|
||||
|
Loading…
x
Reference in New Issue
Block a user