fix errors

This commit is contained in:
Andrey
2021-02-28 20:15:47 +03:00
parent fc17b82021
commit 8fa14cdbc5
2 changed files with 6 additions and 4 deletions

View File

@@ -106,7 +106,8 @@ class MegaView(HomeAssistantView):
else:
pt_orig = hub.ext_in.get(port)
if pt_orig is None:
hub.lg.warning(f'can not find extender for int port {port}')
hub.lg.warning(f'can not find extender for int port {port}, '
f'have ext_int: {hub.ext_in}, ext: {hub.extenders}')
return Response(status=200)
for e, v in data.items():
if e.startswith('ext'):