add proxy support

This commit is contained in:
Andrey
2021-02-19 10:32:28 +03:00
parent 5681f7315c
commit ad2501ca8c
2 changed files with 17 additions and 4 deletions

View File

@@ -24,7 +24,7 @@ class MegaView(HomeAssistantView):
def __init__(self, cfg: dict):
self._try = 0
self.allowed_hosts = {'::1'}
self.allowed_hosts = {'::1', '127.0.0.1'}
self.callbacks = defaultdict(lambda: defaultdict(list))
self.templates: typing.Dict[str, typing.Dict[str, Template]] = {
mid: {