nixos/tests/home-assistant: check for lovelace resources in config

This was recently fixed, but the test was not updated.
This commit is contained in:
Martin Weinelt 2023-12-07 16:29:33 +01:00
parent a9c8c99442
commit 4324d082b2
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759

View File

@ -182,7 +182,7 @@ in {
hass.wait_until_succeeds("journalctl -u home-assistant.service | grep -q 'We found a custom integration prometheus_sensor which has not been tested by Home Assistant'")
with subtest("Check that lovelace modules are referenced and fetchable"):
hass.succeed("grep -q 'mini-graph-card-bundle.js' '${configDir}/ui-lovelace.yaml'")
hass.succeed("grep -q 'mini-graph-card-bundle.js' '${configDir}/configuration.yaml'")
hass.succeed("curl --fail http://localhost:8123/local/nixos-lovelace-modules/mini-graph-card-bundle.js")
with subtest("Check that optional dependencies are in the PYTHONPATH"):