From 509a37fc04c4f92ea4e117217611527f7480615e Mon Sep 17 00:00:00 2001 From: Wouter Schoot Date: Mon, 1 Feb 2021 09:34:17 +0100 Subject: [PATCH] Typofix exsist -> exist (#2491) * Typofix exsist -> exist * Typofix exist -> exists --- supervisor/api/network.py | 2 +- supervisor/homeassistant/core.py | 2 +- supervisor/jobs/__init__.py | 2 +- tests/api/test_network.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/supervisor/api/network.py b/supervisor/api/network.py index de3db6b9e..627176544 100644 --- a/supervisor/api/network.py +++ b/supervisor/api/network.py @@ -155,7 +155,7 @@ class APINetwork(CoreSysAttributes): except HostNetworkNotFound: pass - raise APIError(f"Interface {name} does not exsist") from None + raise APIError(f"Interface {name} does not exist") from None @api_process async def info(self, request: web.Request) -> Dict[str, Any]: diff --git a/supervisor/homeassistant/core.py b/supervisor/homeassistant/core.py index 63f2a2eda..74d65c9a7 100644 --- a/supervisor/homeassistant/core.py +++ b/supervisor/homeassistant/core.py @@ -210,7 +210,7 @@ class HomeAssistantCore(CoreSysAttributes): IssueType.UPDATE_ROLLBACK, ContextType.CORE ) - # Make a copy of the current log file if it exsist + # Make a copy of the current log file if it exists logfile = self.sys_config.path_homeassistant / "home-assistant.log" if logfile.exists(): backup = ( diff --git a/supervisor/jobs/__init__.py b/supervisor/jobs/__init__.py index 844511f75..4bfd7ce5e 100644 --- a/supervisor/jobs/__init__.py +++ b/supervisor/jobs/__init__.py @@ -74,7 +74,7 @@ class JobManager(JsonConfig, CoreSysAttributes): self._data[ATTR_IGNORE_CONDITIONS] = value def get_job(self, name: str) -> SupervisorJob: - """Return a job, create one if it does not exsist.""" + """Return a job, create one if it does not exist.""" if name not in self._jobs: self._jobs[name] = SupervisorJob(self.coresys, name) diff --git a/tests/api/test_network.py b/tests/api/test_network.py index 2a0fae161..be545b8f1 100644 --- a/tests/api/test_network.py +++ b/tests/api/test_network.py @@ -155,7 +155,7 @@ async def test_api_network_interface_update_invalid(api_client): """Test network manager api.""" resp = await api_client.post("/network/interface/invalid/update", json={}) result = await resp.json() - assert result["message"] == "Interface invalid does not exsist" + assert result["message"] == "Interface invalid does not exist" resp = await api_client.post(f"/network/interface/{TEST_INTERFACE}/update", json={}) result = await resp.json()