mirror of
https://github.com/home-assistant/supervisor.git
synced 2026-04-18 07:35:22 +01:00
Fix grammar in errors
This commit is contained in:
@@ -331,7 +331,7 @@ class AddonManager(CoreSysAttributes):
|
|||||||
)
|
)
|
||||||
if not force and not addon.need_build:
|
if not force and not addon.need_build:
|
||||||
raise AddonNotSupportedError(
|
raise AddonNotSupportedError(
|
||||||
"Can't rebuild a image based app", _LOGGER.error
|
"Can't rebuild an image-based app", _LOGGER.error
|
||||||
)
|
)
|
||||||
|
|
||||||
return await addon.rebuild()
|
return await addon.rebuild()
|
||||||
@@ -354,11 +354,11 @@ class AddonManager(CoreSysAttributes):
|
|||||||
self.sys_jobs.current.reference = slug
|
self.sys_jobs.current.reference = slug
|
||||||
|
|
||||||
if slug not in self.local:
|
if slug not in self.local:
|
||||||
_LOGGER.debug("App %s is not local available for restore", slug)
|
_LOGGER.debug("App %s is not locally available for restore", slug)
|
||||||
addon = Addon(self.coresys, slug)
|
addon = Addon(self.coresys, slug)
|
||||||
had_ingress: bool | None = False
|
had_ingress: bool | None = False
|
||||||
else:
|
else:
|
||||||
_LOGGER.debug("App %s is local available for restore", slug)
|
_LOGGER.debug("App %s is locally available for restore", slug)
|
||||||
addon = self.local[slug]
|
addon = self.local[slug]
|
||||||
had_ingress = addon.ingress_panel
|
had_ingress = addon.ingress_panel
|
||||||
|
|
||||||
|
|||||||
@@ -216,7 +216,7 @@ def _warn_addon_config(config: dict[str, Any]):
|
|||||||
config.get(ATTR_BACKUP_POST) or config.get(ATTR_BACKUP_PRE)
|
config.get(ATTR_BACKUP_POST) or config.get(ATTR_BACKUP_PRE)
|
||||||
):
|
):
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"An app which only supports COLD backups trying to use post/pre commands. Please report this to the maintainer of %s",
|
"An app that only supports COLD backups is trying to use pre/post commands. Please report this to the maintainer of %s",
|
||||||
name,
|
name,
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -286,7 +286,7 @@ def _migrate_addon_config(protocol=False):
|
|||||||
if ATTR_DEVICES in config and any(":" in line for line in config[ATTR_DEVICES]):
|
if ATTR_DEVICES in config and any(":" in line for line in config[ATTR_DEVICES]):
|
||||||
if protocol:
|
if protocol:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"App config 'devices' use a deprecated format, the new format uses a list of paths only. Please report this to the maintainer of %s",
|
"App config 'devices' uses a deprecated format instead of a list of paths only. Please report this to the maintainer of %s",
|
||||||
name,
|
name,
|
||||||
)
|
)
|
||||||
config[ATTR_DEVICES] = [line.split(":")[0] for line in config[ATTR_DEVICES]]
|
config[ATTR_DEVICES] = [line.split(":")[0] for line in config[ATTR_DEVICES]]
|
||||||
@@ -295,7 +295,7 @@ def _migrate_addon_config(protocol=False):
|
|||||||
if ATTR_TMPFS in config and not isinstance(config[ATTR_TMPFS], bool):
|
if ATTR_TMPFS in config and not isinstance(config[ATTR_TMPFS], bool):
|
||||||
if protocol:
|
if protocol:
|
||||||
_LOGGER.warning(
|
_LOGGER.warning(
|
||||||
"App config 'tmpfs' use a deprecated format, new it's only a boolean. Please report this to the maintainer of %s",
|
"App config 'tmpfs' uses a deprecated format instead of just a boolean. Please report this to the maintainer of %s",
|
||||||
name,
|
name,
|
||||||
)
|
)
|
||||||
config[ATTR_TMPFS] = True
|
config[ATTR_TMPFS] = True
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ class DockerAddon(DockerInterface):
|
|||||||
return IPv4Address(
|
return IPv4Address(
|
||||||
self._meta["NetworkSettings"]["Networks"]["hassio"]["IPAddress"]
|
self._meta["NetworkSettings"]["Networks"]["hassio"]["IPAddress"]
|
||||||
)
|
)
|
||||||
except (KeyError, TypeError, ValueError):
|
except KeyError, TypeError, ValueError:
|
||||||
return NO_ADDDRESS
|
return NO_ADDDRESS
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@@ -173,7 +173,7 @@ class DockerAddon(DockerInterface):
|
|||||||
# Check access
|
# Check access
|
||||||
if not self.sys_hardware.policy.allowed_for_access(device):
|
if not self.sys_hardware.policy.allowed_for_access(device):
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"App %s try to access to blocked device %s!",
|
"App %s tried to access to blocked device %s!",
|
||||||
self.addon.name,
|
self.addon.name,
|
||||||
device.name,
|
device.name,
|
||||||
)
|
)
|
||||||
@@ -184,7 +184,7 @@ class DockerAddon(DockerInterface):
|
|||||||
for device in self.addon.devices:
|
for device in self.addon.devices:
|
||||||
if not self.sys_hardware.policy.allowed_for_access(device):
|
if not self.sys_hardware.policy.allowed_for_access(device):
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"App %s try to access to blocked device %s!",
|
"App %s tried to access to blocked device %s!",
|
||||||
self.addon.name,
|
self.addon.name,
|
||||||
device.name,
|
device.name,
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user