mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-24 09:36:31 +00:00
Bump pylint from 2.4.4 to 2.5.0 (#1684)
* Bump pylint from 2.4.4 to 2.5.0 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.4.4 to 2.5.0. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Changelog](https://github.com/PyCQA/pylint/blob/master/ChangeLog) - [Commits](https://github.com/PyCQA/pylint/compare/pylint-2.4.4...pylint-2.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * fix lint Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
parent
9a2f025646
commit
56959d781a
@ -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
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user