Skip to content

Commit

Permalink
liiint
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jul 22, 2024
1 parent e8c0d27 commit dffa618
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions custom_components/healthchecksio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit dffa618

Please sign in to comment.