add proxy support

This commit is contained in:
Andrey
2021-02-19 10:39:15 +03:00
parent ad2501ca8c
commit 1e8777ca6d
6 changed files with 15 additions and 2 deletions

View File

@@ -76,6 +76,7 @@ class MegaD:
update_all=True,
poll_outs=False,
fake_response=True,
force_d=None,
**kwargs,
):
"""Initialize."""
@@ -130,6 +131,9 @@ class MegaD:
else:
self.mqtt_id = mqtt_id
if force_d is not None:
self.customize[CONF_FORCE_D] = force_d
async def start(self):
self.loop = asyncio.get_event_loop()
if self.mqtt is not None: