From b313ed94d21b29237b6bc3d1313e89cee31134cc Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Thu, 12 Sep 2024 13:56:30 +0200 Subject: [PATCH] Select OTA Provider port randomly Instead of using a fixed port for OTA Provider, pass 0 to let the Matter SDK/bind() syscall select a random port. This allows multiple OTA Providers to run on the same host without port conflicts. Fixes: https://github.com/home-assistant/core/issues/125130 --- matter_server/server/ota/provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matter_server/server/ota/provider.py b/matter_server/server/ota/provider.py index 6a39fab2..28c18870 100644 --- a/matter_server/server/ota/provider.py +++ b/matter_server/server/ota/provider.py @@ -175,7 +175,7 @@ async def start_update( "--discriminator", str(ota_provider_discriminator), "--secured-device-port", - "5540", + "0", "--KVS", str(self._ota_provider_dir / f"chip_kvs_ota_provider_{timestamp}"), "--filepath",