Enable ruff check for ANN (#1139)

This commit is contained in:
Teemu R.
2024-11-10 19:55:13 +01:00
committed by GitHub
parent 6b44fe6242
commit 66eb17057e
89 changed files with 596 additions and 452 deletions

View File

@@ -310,9 +310,7 @@ class FakeSmartTransport(BaseTransport):
}
return retval
raise NotImplementedError(
"Method %s not implemented for children" % child_method
)
raise NotImplementedError(f"Method {child_method} not implemented for children")
def _get_on_off_gradually_info(self, info, params):
if self.components["on_off_gradually"] == 1:

View File

@@ -41,7 +41,7 @@ async def test_firmware_features(
await fw.check_latest_firmware()
if fw.supported_version < required_version:
pytest.skip("Feature %s requires newer version" % feature)
pytest.skip(f"Feature {feature} requires newer version")
prop = getattr(fw, prop_name)
assert isinstance(prop, type)