1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-24 20:35:55 +00:00

Typofix exsist -> exist (#2491)

* Typofix exsist -> exist

* Typofix exist -> exists
This commit is contained in:
Wouter Schoot
2021-02-01 09:34:17 +01:00
committed by GitHub
parent 17f62b6e86
commit 509a37fc04
4 changed files with 4 additions and 4 deletions

View File

@@ -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]:

View File

@@ -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 = (

View File

@@ -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)

View File

@@ -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()