mirror of
https://github.com/esphome/esphome.git
synced 2024-11-22 11:47:30 +01:00
microWakeWord: Fix model path joining (#6426)
This commit is contained in:
parent
121bd84854
commit
f5ac1bd905
@ -287,7 +287,7 @@ def _load_model_data(manifest_path: Path):
|
|||||||
except cv.Invalid as e:
|
except cv.Invalid as e:
|
||||||
raise EsphomeError(f"Invalid manifest file: {e}") from 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:
|
with open(model_path, "rb") as f:
|
||||||
model = f.read()
|
model = f.read()
|
||||||
|
Loading…
Reference in New Issue
Block a user