diff --git a/requirements_tests.txt b/requirements_tests.txt index a19f1345e..338dac4ca 100644 --- a/requirements_tests.txt +++ b/requirements_tests.txt @@ -1,5 +1,5 @@ flake8==3.7.9 -pylint==2.4.4 +pylint==2.5.0 pytest==5.4.1 pytest-timeout==1.3.4 pytest-aiohttp==0.3.0 diff --git a/supervisor/api/discovery.py b/supervisor/api/discovery.py index ddc03abc5..523402674 100644 --- a/supervisor/api/discovery.py +++ b/supervisor/api/discovery.py @@ -64,7 +64,7 @@ class APIDiscovery(CoreSysAttributes): # Access? if body[ATTR_SERVICE] not in addon.discovery: - raise APIForbidden(f"Can't use discovery!") + raise APIForbidden("Can't use discovery!") # Process discovery message message = self.sys_discovery.send(addon, **body) @@ -94,7 +94,7 @@ class APIDiscovery(CoreSysAttributes): # Permission if message.addon != addon.slug: - raise APIForbidden(f"Can't remove discovery message") + raise APIForbidden("Can't remove discovery message") self.sys_discovery.remove(message) return True diff --git a/supervisor/api/snapshots.py b/supervisor/api/snapshots.py index 152c820aa..361ca2bca 100644 --- a/supervisor/api/snapshots.py +++ b/supervisor/api/snapshots.py @@ -181,7 +181,7 @@ class APISnapshots(CoreSysAttributes): async def upload(self, request): """Upload a snapshot file.""" with TemporaryDirectory(dir=str(self.sys_config.path_tmp)) as temp_dir: - tar_file = Path(temp_dir, f"snapshot.tar") + tar_file = Path(temp_dir, "snapshot.tar") try: with tar_file.open("wb") as snapshot: