fix binary sensors

This commit is contained in:
Andrey
2021-01-28 10:29:16 +03:00
parent 6d3391bc45
commit c36c1369aa
5 changed files with 34 additions and 11 deletions

View File

@@ -252,7 +252,7 @@ class MegaD:
except asyncio.TimeoutError:
self.lg.error(f'timeout when getting port {port}')
async def get_all_ports(self):
async def get_all_ports(self, only_out=False):
if not self.mqtt_inputs:
ret = await self.request(cmd='all')
for port, x in enumerate(ret.split(';')):