Add SOURCE_HASSIO to DISCOVERY_SOURCES (#128454)

This commit is contained in:
epenet 2024-10-16 13:34:28 +02:00 committed by GitHub
parent dfb94d8917
commit 0e7297873c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View File

@ -170,6 +170,7 @@ DISCOVERY_SOURCES = {
SOURCE_DHCP, SOURCE_DHCP,
SOURCE_DISCOVERY, SOURCE_DISCOVERY,
SOURCE_HARDWARE, SOURCE_HARDWARE,
SOURCE_HASSIO,
SOURCE_HOMEKIT, SOURCE_HOMEKIT,
SOURCE_IMPORT, SOURCE_IMPORT,
SOURCE_INTEGRATION_DISCOVERY, SOURCE_INTEGRATION_DISCOVERY,

View File

@ -7,7 +7,6 @@ from motioneye_client.client import (
MotionEyeClientInvalidAuthError, MotionEyeClientInvalidAuthError,
MotionEyeClientRequestError, MotionEyeClientRequestError,
) )
import pytest
from homeassistant import config_entries from homeassistant import config_entries
from homeassistant.components.hassio import HassioServiceInfo from homeassistant.components.hassio import HassioServiceInfo
@ -391,10 +390,6 @@ async def test_hassio_ignored(hass: HomeAssistant) -> None:
assert result.get("reason") == "already_configured" assert result.get("reason") == "already_configured"
@pytest.mark.parametrize( # Remove when translations fixed
"ignore_translations",
["component.motioneye.config.abort.already_in_progress"],
)
async def test_hassio_abort_if_already_in_progress(hass: HomeAssistant) -> None: async def test_hassio_abort_if_already_in_progress(hass: HomeAssistant) -> None:
"""Test Supervisor discovered flow aborts if user flow in progress.""" """Test Supervisor discovered flow aborts if user flow in progress."""
result = await hass.config_entries.flow.async_init( result = await hass.config_entries.flow.async_init(