Update Ruff to v0.0.247 (#88210)

* Update Ruff to v0.0.247

* Fix new found violations
This commit is contained in:
Franck Nijhof 2023-02-15 22:46:03 +01:00 committed by GitHub
parent a1efd59760
commit d3ed8de232
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
40 changed files with 135 additions and 106 deletions

View file

@ -1641,7 +1641,7 @@ async def test_device_classes_with_invalid_unit_of_measurement(
],
)
@pytest.mark.parametrize(
"native_value,expected",
("native_value", "expected"),
[
("abc", "abc"),
("13.7.1", "13.7.1"),
@ -1687,7 +1687,7 @@ async def test_non_numeric_validation_warn(
("device_class", "state_class", "unit", "precision"), ((None, None, None, 1),)
)
@pytest.mark.parametrize(
"native_value,expected",
("native_value", "expected"),
[
("abc", "abc"),
("13.7.1", "13.7.1"),
@ -1737,7 +1737,7 @@ async def test_non_numeric_validation_raise(
],
)
@pytest.mark.parametrize(
"native_value,expected",
("native_value", "expected"),
[
(13, "13"),
(17.50, "17.5"),