mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-13 18:14:28 +05:00
fix errors
This commit is contained in:
@@ -104,7 +104,7 @@ class MegaView(HomeAssistantView):
|
|||||||
if port in hub.extenders:
|
if port in hub.extenders:
|
||||||
pt_orig = port
|
pt_orig = port
|
||||||
else:
|
else:
|
||||||
pt_orig = hub.ext_in.get(port)
|
pt_orig = hub.ext_in.get(port, hub.ext_in.get(str(port)))
|
||||||
if pt_orig is None:
|
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}')
|
f'have ext_int: {hub.ext_in}, ext: {hub.extenders}')
|
||||||
|
|||||||
Reference in New Issue
Block a user