1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Use modern platform path when reporting platform config errors (#104238)

* Use modern platform path when reporting platform config errors

* Update tests

* Address review comment

* Explicitly pass platform domain to log helpers

* Revert overly complicated changes

* Try a simpler solution
This commit is contained in:
Erik Montnemery
2023-12-05 15:06:13 +01:00
committed by GitHub
parent db9d6b401a
commit 25bea91683
9 changed files with 89 additions and 60 deletions

View File

@@ -78,7 +78,10 @@ def test_config_platform_valid(
(
BASE_CONFIG + "light:\n platform: beer",
{"homeassistant", "light"},
"Platform error light.beer - Integration 'beer' not found.",
(
"Platform error 'light' from integration 'beer' - "
"Integration 'beer' not found."
),
),
],
)