1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2026-04-02 00:07:16 +01:00

Fix grammar in errors

This commit is contained in:
Mike Degatano
2026-04-01 19:20:02 +00:00
parent cd02d90544
commit 04bc80598f
3 changed files with 9 additions and 9 deletions

View File

@@ -331,7 +331,7 @@ class AddonManager(CoreSysAttributes):
)
if not force and not addon.need_build:
raise AddonNotSupportedError(
"Can't rebuild a image based app", _LOGGER.error
"Can't rebuild an image-based app", _LOGGER.error
)
return await addon.rebuild()
@@ -354,11 +354,11 @@ class AddonManager(CoreSysAttributes):
self.sys_jobs.current.reference = slug
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)
had_ingress: bool | None = False
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]
had_ingress = addon.ingress_panel

View File

@@ -216,7 +216,7 @@ def _warn_addon_config(config: dict[str, Any]):
config.get(ATTR_BACKUP_POST) or config.get(ATTR_BACKUP_PRE)
):
_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,
)
@@ -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 protocol:
_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,
)
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 protocol:
_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,
)
config[ATTR_TMPFS] = True

View File

@@ -112,7 +112,7 @@ class DockerAddon(DockerInterface):
return IPv4Address(
self._meta["NetworkSettings"]["Networks"]["hassio"]["IPAddress"]
)
except (KeyError, TypeError, ValueError):
except KeyError, TypeError, ValueError:
return NO_ADDDRESS
@property
@@ -173,7 +173,7 @@ class DockerAddon(DockerInterface):
# Check access
if not self.sys_hardware.policy.allowed_for_access(device):
_LOGGER.error(
"App %s try to access to blocked device %s!",
"App %s tried to access to blocked device %s!",
self.addon.name,
device.name,
)
@@ -184,7 +184,7 @@ class DockerAddon(DockerInterface):
for device in self.addon.devices:
if not self.sys_hardware.policy.allowed_for_access(device):
_LOGGER.error(
"App %s try to access to blocked device %s!",
"App %s tried to access to blocked device %s!",
self.addon.name,
device.name,
)