lint
This commit is contained in:
1 parent
2918191541
commit
00c234541d
5 files changed
+23
-26
No files matched your search
@@ -1,5 +1,4 @@
|
||||
from src.api.app import make_app
|
||||
from src.automations.manager import AutomationManager
|
||||
from src.hass_config import find_hass_config
|
||||
|
||||
hass_config = find_hass_config()
|
||||
|
||||
@@ -13,10 +13,7 @@ from .errors import (
|
||||
DBError,
|
||||
InvalidAutomationFile,
|
||||
)
|
||||
from .loader import (
|
||||
get_base_automation_key,
|
||||
load_and_iter_automations,
|
||||
)
|
||||
from .loader import get_base_automation_key, load_and_iter_automations
|
||||
from .tags import TagManager
|
||||
from .types import Automation, ExtenededAutomation
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
from typing import Literal
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from src.hass_config import HassConfig
|
||||
from src.yaml_serializer import load_yaml, dump_yaml
|
||||
from src.yaml_serializer import dump_yaml, load_yaml
|
||||
|
||||
|
||||
class UserProfile(BaseModel):
|
||||
@@ -14,7 +15,7 @@ class UserProfile(BaseModel):
|
||||
path = hass_config.get_profile_path()
|
||||
if path.exists():
|
||||
with hass_config.get_profile_path().open("r") as fp:
|
||||
return cls(**load_yaml(fp, hass_config.root_path))
|
||||
return cls(**load_yaml(fp, hass_config.root_path)) # type: ignore
|
||||
else:
|
||||
return cls()
|
||||
|
||||
|
||||
Reference in new issue
Block a user