From 20817955afacf29047c50da8c166d3c477a5b7a6 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:35:55 +0200 Subject: [PATCH] Fix bad-chained-comparison pylint warning in tests (#119477) --- tests/helpers/test_template.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/helpers/test_template.py b/tests/helpers/test_template.py index fd19ef019c2..6b75ff384b6 100644 --- a/tests/helpers/test_template.py +++ b/tests/helpers/test_template.py @@ -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(