mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-20 15:46:29 +00:00
Typofix exsist -> exist (#2491)
* Typofix exsist -> exist * Typofix exist -> exists
This commit is contained in:
parent
17f62b6e86
commit
509a37fc04
@ -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]:
|
||||||
|
@ -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 = (
|
||||||
|
@ -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)
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user