fix multiple megas

This commit is contained in:
Andrey
2021-01-25 20:17:15 +03:00
parent 39c4ab0e3b
commit 1548e8c364
2 changed files with 3 additions and 4 deletions

View File

@@ -307,7 +307,7 @@ class MegaD:
if self.mqtt_inputs:
self._callbacks[port].append(callback)
else:
self.http.callbacks[port].append(callback)
self.http.callbacks[self.id][port].append(callback)
async def authenticate(self) -> bool:
"""Test if we can authenticate with the host."""