summaryrefslogtreecommitdiff
path: root/include/py
diff options
context:
space:
mode:
Diffstat (limited to 'include/py')
-rw-r--r--include/py/homekit/audio/amixer.py2
-rw-r--r--include/py/homekit/inverter/config.py2
-rw-r--r--include/py/homekit/telegram/config.py2
-rw-r--r--include/py/homekit/util.py1
4 files changed, 4 insertions, 3 deletions
diff --git a/include/py/homekit/audio/amixer.py b/include/py/homekit/audio/amixer.py
index 8ed754b..827e102 100644
--- a/include/py/homekit/audio/amixer.py
+++ b/include/py/homekit/audio/amixer.py
@@ -1,6 +1,6 @@
import subprocess
-from ..config import config
+from ..config import app_config as config
from threading import Lock
from typing import Union, List
diff --git a/include/py/homekit/inverter/config.py b/include/py/homekit/inverter/config.py
index 694ddae..0383e96 100644
--- a/include/py/homekit/inverter/config.py
+++ b/include/py/homekit/inverter/config.py
@@ -10,4 +10,4 @@ class InverterdConfig(ConfigUnit):
return {
'remote_addr': cls._addr_schema(required=True),
'local_addr': cls._addr_schema(required=True),
- } \ No newline at end of file
+ }
diff --git a/include/py/homekit/telegram/config.py b/include/py/homekit/telegram/config.py
index 5f41008..4d54854 100644
--- a/include/py/homekit/telegram/config.py
+++ b/include/py/homekit/telegram/config.py
@@ -75,4 +75,4 @@ class TelegramBotConfig(ConfigUnit, ABC):
try:
return list(map(_user_id_mapper, self['bot'][ult.value]))
except KeyError:
- return [] \ No newline at end of file
+ return []
diff --git a/include/py/homekit/util.py b/include/py/homekit/util.py
index 2b06600..f718291 100644
--- a/include/py/homekit/util.py
+++ b/include/py/homekit/util.py
@@ -12,6 +12,7 @@ import re
import os
import ipaddress
+from collections import namedtuple
from enum import Enum
from datetime import datetime
from typing import Optional, List