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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -155,7 +155,7 @@ class APINetwork(CoreSysAttributes):
except HostNetworkNotFound: except HostNetworkNotFound:
pass pass
raise APIError(f"Interface {name} does not exsist") from None raise APIError(f"Interface {name} does not exist") from None
@api_process @api_process
async def info(self, request: web.Request) -> Dict[str, Any]: async def info(self, request: web.Request) -> Dict[str, Any]:

View File

@ -210,7 +210,7 @@ class HomeAssistantCore(CoreSysAttributes):
IssueType.UPDATE_ROLLBACK, ContextType.CORE 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" logfile = self.sys_config.path_homeassistant / "home-assistant.log"
if logfile.exists(): if logfile.exists():
backup = ( backup = (

View File

@ -74,7 +74,7 @@ class JobManager(JsonConfig, CoreSysAttributes):
self._data[ATTR_IGNORE_CONDITIONS] = value self._data[ATTR_IGNORE_CONDITIONS] = value
def get_job(self, name: str) -> SupervisorJob: 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: if name not in self._jobs:
self._jobs[name] = SupervisorJob(self.coresys, name) 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.""" """Test network manager api."""
resp = await api_client.post("/network/interface/invalid/update", json={}) resp = await api_client.post("/network/interface/invalid/update", json={})
result = await resp.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={}) resp = await api_client.post(f"/network/interface/{TEST_INTERFACE}/update", json={})
result = await resp.json() result = await resp.json()