mirror of
https://github.com/home-assistant/core.git
synced 2026-09-28 02:18:10 -04:00
Remove setup of rpi_power from onboarding (#139168)
* Remove setup of rpi_power from onboarding * Remove test
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user