diff --git a/custom_components/mega/http.py b/custom_components/mega/http.py index 5aa8636..f865539 100644 --- a/custom_components/mega/http.py +++ b/custom_components/mega/http.py @@ -104,7 +104,7 @@ class MegaView(HomeAssistantView): if port in hub.extenders: pt_orig = port 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: hub.lg.warning(f'can not find extender for int port {port}, ' f'have ext_int: {hub.ext_in}, ext: {hub.extenders}')