Skip to content

Commit ca94987

Browse files
authored
Fix: changed yaml-loading in home-assistant. Fixes #336 (#340)
* Fix: changed yaml-loading in home-assistant. Fixes #336 * chore: revert formatting
1 parent 9b7100c commit ca94987

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

custom_components/switch_manager/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Helpers for switch_manager integration."""
2-
import json, pathlib, os, shutil, enum, asyncio
2+
import json, pathlib, os, shutil, enum
33
from homeassistant.core import HomeAssistant
4-
from homeassistant.util.yaml.loader import _find_files, load_yaml
4+
from annotatedyaml.loader import _find_files, load_yaml
55
from .const import (
66
LOGGER,
77
DOMAIN,

custom_components/switch_manager/view.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import os, pathlib
2-
from .const import DOMAIN, CONF_BLUEPRINTS, BLUEPRINTS_FOLDER, PANEL_URL, NAME, LOGGER
2+
from .const import DOMAIN, CONF_BLUEPRINTS, BLUEPRINTS_FOLDER, PANEL_URL, NAME
33
from .helpers import VERSION
44
from homeassistant.core import HomeAssistant
55
from homeassistant.components.frontend import async_register_built_in_panel
66
from homeassistant.components.http import StaticPathConfig
7-
from homeassistant.util.yaml.loader import _find_files
87

98
async def async_setup_view(hass: HomeAssistant):
109
staticJS = [StaticPathConfig(PANEL_URL, hass.config.path("custom_components/switch_manager/assets/switch_manager_panel.js"), True)]

0 commit comments

Comments
 (0)