From be1d662c665738058823b684c6bd930e9a129b54 Mon Sep 17 00:00:00 2001 From: Simon Berger Date: Sun, 17 Sep 2023 22:53:02 +0000 Subject: [PATCH] fix lints --- custom_components/vzug/api/__init__.py | 2 +- custom_components/vzug/config_flow.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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,