diff --git a/custom_components/vzug/api/__init__.py b/custom_components/vzug/api/__init__.py index bb33bba..657bdb8 100644 --- a/custom_components/vzug/api/__init__.py +++ b/custom_components/vzug/api/__init__.py @@ -11,7 +11,7 @@ import httpx from yarl import URL -from . import discovery # type: ignore +from . import discovery # noqa: F401 # type: ignore _LOGGER = logging.getLogger(__name__) diff --git a/custom_components/vzug/config_flow.py b/custom_components/vzug/config_flow.py index cad342f..cde2950 100644 --- a/custom_components/vzug/config_flow.py +++ b/custom_components/vzug/config_flow.py @@ -131,9 +131,9 @@ async def async_step_start_discovery( ), return_exceptions=True, ) - discoveries: set[api.discovery.DiscoveryInfo] = set( + discoveries: set[api.discovery.DiscoveryInfo] = { d for group in results if not isinstance(group, Exception) for d in group - ) + } for discovery in discoveries: df.async_create_flow( self.hass,