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

Fix rest sensors with resource templates (#42818)

This commit is contained in:
J. Nick Koston
2020-11-03 21:52:47 -10:00
committed by GitHub
parent b71e28dfac
commit 9e0043fb17
4 changed files with 6 additions and 6 deletions

View File

@@ -102,7 +102,7 @@ async def test_setup_minimum_resource_template(hass):
{
"sensor": {
"platform": "rest",
"resource_template": "http://localhost",
"resource_template": "{% set url = 'http://localhost' %}{{ url }}",
}
},
)