mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-26 18:46:29 +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
|
flake8==3.7.9
|
||||||
pylint==2.4.4
|
pylint==2.5.0
|
||||||
pytest==5.4.1
|
pytest==5.4.1
|
||||||
pytest-timeout==1.3.4
|
pytest-timeout==1.3.4
|
||||||
pytest-aiohttp==0.3.0
|
pytest-aiohttp==0.3.0
|
||||||
|
@ -64,7 +64,7 @@ class APIDiscovery(CoreSysAttributes):
|
|||||||
|
|
||||||
# Access?
|
# Access?
|
||||||
if body[ATTR_SERVICE] not in addon.discovery:
|
if body[ATTR_SERVICE] not in addon.discovery:
|
||||||
raise APIForbidden(f"Can't use discovery!")
|
raise APIForbidden("Can't use discovery!")
|
||||||
|
|
||||||
# Process discovery message
|
# Process discovery message
|
||||||
message = self.sys_discovery.send(addon, **body)
|
message = self.sys_discovery.send(addon, **body)
|
||||||
@ -94,7 +94,7 @@ class APIDiscovery(CoreSysAttributes):
|
|||||||
|
|
||||||
# Permission
|
# Permission
|
||||||
if message.addon != addon.slug:
|
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)
|
self.sys_discovery.remove(message)
|
||||||
return True
|
return True
|
||||||
|
@ -181,7 +181,7 @@ class APISnapshots(CoreSysAttributes):
|
|||||||
async def upload(self, request):
|
async def upload(self, request):
|
||||||
"""Upload a snapshot file."""
|
"""Upload a snapshot file."""
|
||||||
with TemporaryDirectory(dir=str(self.sys_config.path_tmp)) as temp_dir:
|
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:
|
try:
|
||||||
with tar_file.open("wb") as snapshot:
|
with tar_file.open("wb") as snapshot:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user