Upgrade ruff to 0.0.285 (#98647)

This commit is contained in:
Ville Skyttä 2023-08-19 15:17:17 +03:00 committed by GitHub
parent f318063a77
commit 3094991236
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 109 additions and 119 deletions

View file

@ -303,7 +303,7 @@ async def test_and_condition_shorthand(hass: HomeAssistant) -> None:
test = await condition.async_from_config(hass, config)
assert config["alias"] == "And Condition Shorthand"
assert "and" not in config.keys()
assert "and" not in config
hass.states.async_set("sensor.temperature", 120)
assert not test(hass)
@ -345,7 +345,7 @@ async def test_and_condition_list_shorthand(hass: HomeAssistant) -> None:
test = await condition.async_from_config(hass, config)
assert config["alias"] == "And Condition List Shorthand"
assert "and" not in config.keys()
assert "and" not in config
hass.states.async_set("sensor.temperature", 120)
assert not test(hass)
@ -577,7 +577,7 @@ async def test_or_condition_shorthand(hass: HomeAssistant) -> None:
test = await condition.async_from_config(hass, config)
assert config["alias"] == "Or Condition Shorthand"
assert "or" not in config.keys()
assert "or" not in config
hass.states.async_set("sensor.temperature", 120)
assert not test(hass)
@ -809,7 +809,7 @@ async def test_not_condition_shorthand(hass: HomeAssistant) -> None:
test = await condition.async_from_config(hass, config)
assert config["alias"] == "Not Condition Shorthand"
assert "not" not in config.keys()
assert "not" not in config
hass.states.async_set("sensor.temperature", 101)
assert test(hass)