mirror of
https://github.com/python-kasa/python-kasa.git
synced 2025-10-19 13:58:03 +00:00
Enable ruff check for ANN (#1139)
This commit is contained in:
@@ -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:
|
||||
|
@@ -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)
|
||||
|
Reference in New Issue
Block a user