From dffa618150681ba857f21c4605310a68f58dffbf Mon Sep 17 00:00:00 2001 From: ludeeus Date: Mon, 22 Jul 2024 13:57:46 +0000 Subject: [PATCH] liiint --- custom_components/healthchecksio/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/custom_components/healthchecksio/__init__.py b/custom_components/healthchecksio/__init__.py index 6b9e744..5114c25 100644 --- a/custom_components/healthchecksio/__init__.py +++ b/custom_components/healthchecksio/__init__.py @@ -117,8 +117,8 @@ async def update_data(self): check_url = f"https://hc-ping.com/{self.check}" await asyncio.sleep(1) # needed for self-hosted instances await session.get(check_url) - except Exception as error: # pylint: disable=broad-except - LOGGER.error(f"Could not update data - {error}") + except Exception: # pylint: disable=broad-except + LOGGER.exception("Could not update data") async def check_files(hass: core.HomeAssistant) -> bool: @@ -132,7 +132,7 @@ async def check_files(hass: core.HomeAssistant) -> bool: missing.append(file) if missing: - LOGGER.critical(f"The following files are missing: {missing}") + LOGGER.critical("The following files are missing: %s", missing) returnvalue = False else: returnvalue = True