- refactor for multi-config suport done
- added better errror captures
This commit is contained in:
1 parent
55ea1e23a4
commit
c67d1bd32f
32 files changed
+991
-835
No files matched your search
+14
-10
@@ -1,15 +1,19 @@
|
||||
get_index # unused function (src/api/app.py:43)
|
||||
list_autos # unused function (src/api/routes/automations.py:18)
|
||||
upsert_auto # unused function (src/api/routes/automations.py:29)
|
||||
delete_auto # unused function (src/api/routes/automations.py:37)
|
||||
list_autos # unused function (src/api/routes/automations.py:12)
|
||||
upsert_auto # unused function (src/api/routes/automations.py:24)
|
||||
delete_auto # unused function (src/api/routes/automations.py:32)
|
||||
read_details # unused function (src/api/routes/details.py:10)
|
||||
read_ping # unused function (src/api/routes/ping.py:10)
|
||||
websocket_endpoint # unused function (src/api/routes/socket.py:13)
|
||||
params # unused variable (src/api/types.py:18)
|
||||
total_items # unused variable (src/api/types.py:19)
|
||||
trigger_variables # unused variable (src/automations/types.py:11)
|
||||
_.reload # unused method (src/automations_v2/manager.py:29)
|
||||
_.upsert # unused method (src/automations_v2/manager.py:54)
|
||||
trigger_variables # unused variable (src/automations_v2/types.py:12)
|
||||
action # unused variable (src/automations_v2/types.py:16)
|
||||
params # unused variable (src/api/types.py:16)
|
||||
total_items # unused variable (src/api/types.py:17)
|
||||
data # unused variable (src/api/types.py:18)
|
||||
trigger_variables # unused variable (src/automations/types.py:13)
|
||||
trigger # unused variable (src/automations/types.py:15)
|
||||
condition # unused variable (src/automations/types.py:16)
|
||||
action # unused variable (src/automations/types.py:17)
|
||||
_.to_json # unused method (src/automations/types.py:38)
|
||||
_.automation_tags # unused property (src/hass_config/loader.py:18)
|
||||
_.save_automations # unused method (src/hass_config/loader.py:48)
|
||||
_.save_tags # unused method (src/hass_config/loader.py:56)
|
||||
json_dumps # unused function (src/json_serializer.py:5)
|
||||
@@ -1,10 +1,6 @@
|
||||
from fastapi import APIRouter, HTTPException
|
||||
|
||||
from src.api.types import (
|
||||
ListData,
|
||||
ListParams,
|
||||
UpdateTags,
|
||||
)
|
||||
from src.api.types import ListData, ListParams, UpdateTags
|
||||
from src.automations.errors import FailedDeletion
|
||||
from src.automations.manager import AutomationManager
|
||||
from src.automations.types import ExtenededAutomation
|
||||
|
||||
@@ -4,8 +4,6 @@ from pydantic import BaseModel
|
||||
from pydantic.fields import Field
|
||||
from pydantic.generics import GenericModel
|
||||
|
||||
from src.automations.types import ExtenededAutomation
|
||||
|
||||
DataT = TypeVar("DataT")
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
class HassConfigError(Exception):
|
||||
pass
|
||||
|
||||
|
||||
class MissingFile(HassConfigError):
|
||||
pass
|
||||
@@ -5,8 +5,6 @@ from src.automations.tags import TagManager
|
||||
from src.yaml_serializer import dump_yaml, load_yaml
|
||||
from src.yaml_serializer.types import IncludedYaml
|
||||
|
||||
from .errors import MissingFile
|
||||
|
||||
|
||||
class HassConfig:
|
||||
def __init__(self, root_path: Path) -> None:
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
from unittest import TestCase
|
||||
|
||||
from src.automations.types import BaseAutomation
|
||||
from src.hass_config.errors import MissingFile
|
||||
from src.hass_config.loader import HassConfig
|
||||
from tests.utils import create_dummy_config_folder
|
||||
|
||||
|
||||
Reference in new issue
Block a user