Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Feb 28, 2024
1 parent d039bf5 commit 24ff225
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions custom_components/hacs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
from aiogithubapi.objects.repository import AIOGitHubAPIRepository
from aiohttp.client import ClientSession, ClientTimeout
from awesomeversion import AwesomeVersion
from homeassistant.components.persistent_notification import create as create_persistent_notification
from homeassistant.components.persistent_notification import (
create as create_persistent_notification,
)
from homeassistant.config_entries import ConfigEntry, ConfigEntryState
from homeassistant.const import EVENT_HOMEASSISTANT_FINAL_WRITE, Platform
from homeassistant.core import HomeAssistant, callback
Expand Down Expand Up @@ -621,7 +623,9 @@ async def startup_tasks(self, _=None) -> None:
for repo in critical:
if not repo["acknowledged"]:
self.log.critical("URGENT!: Check the HACS panel!")
create_persistent_notification(self.hass, title="URGENT!", message="**Check the HACS panel!**")
create_persistent_notification(
self.hass, title="URGENT!", message="**Check the HACS panel!**"
)
break

if not self.configuration.experimental:
Expand Down
5 changes: 3 additions & 2 deletions custom_components/hacs/frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import os
from typing import TYPE_CHECKING

from homeassistant.core import HomeAssistant, callback
from homeassistant.components.frontend import async_register_built_in_panel
from homeassistant.core import HomeAssistant, callback

from .const import DOMAIN, URL_BASE
from .hacs_frontend import VERSION as FE_VERSION, locate_dir
Expand Down Expand Up @@ -66,7 +66,8 @@ def async_register_frontend(hass: HomeAssistant, hacs: HacsBase) -> None:

# Add to sidepanel if needed
if DOMAIN not in hass.data.get("frontend_panels", {}):
async_register_built_in_panel(hass,
async_register_built_in_panel(
hass,
component_name="custom",
sidebar_title=hacs.configuration.sidepanel_title,
sidebar_icon=hacs.configuration.sidepanel_icon,
Expand Down

0 comments on commit 24ff225

Please sign in to comment.