mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 20:57:21 +00:00
Fix bad-chained-comparison pylint warning in tests (#119477)
This commit is contained in:
parent
abb8c58b87
commit
20817955af
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user