microWakeWord: Fix model path joining (#6426)

This commit is contained in:
ebw44 2024-03-26 11:20:15 +13:00 committed by Jesse Hills
parent 37345e11eb
commit 7abb82c1ca
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -287,7 +287,7 @@ def _load_model_data(manifest_path: Path):
except cv.Invalid as e:
raise EsphomeError(f"Invalid manifest file: {e}") from e
model_path = urljoin(str(manifest_path), manifest[CONF_MODEL])
model_path = manifest_path.parent / manifest[CONF_MODEL]
with open(model_path, "rb") as f:
model = f.read()