Fix bad-chained-comparison pylint warning in tests (#119477)

pull/119482/head
epenet 2024-06-12 12:35:55 +02:00 committed by GitHub
parent abb8c58b87
commit 20817955af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -2812,7 +2812,7 @@ def test_version(hass: HomeAssistant) -> None:
"{{ version('2099.9.9') < '2099.9.10' }}",
hass,
).async_render()
assert filter_result == function_result is True
assert filter_result is function_result is True
filter_result = template.Template(
"{{ '2099.9.9' | version == '2099.9.9' }}",
@ -2822,7 +2822,7 @@ def test_version(hass: HomeAssistant) -> None:
"{{ version('2099.9.9') == '2099.9.9' }}",
hass,
).async_render()
assert filter_result == function_result is True
assert filter_result is function_result is True
with pytest.raises(TemplateError):
template.Template(