From 04bc80598f31e2701fb86256cb48ceaaed8c35d6 Mon Sep 17 00:00:00 2001 From: Mike Degatano Date: Wed, 1 Apr 2026 19:20:02 +0000 Subject: [PATCH] Fix grammar in errors --- supervisor/addons/manager.py | 6 +++--- supervisor/addons/validate.py | 6 +++--- supervisor/docker/addon.py | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/supervisor/addons/manager.py b/supervisor/addons/manager.py index cc500b1f4..11889503d 100644 --- a/supervisor/addons/manager.py +++ b/supervisor/addons/manager.py @@ -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 diff --git a/supervisor/addons/validate.py b/supervisor/addons/validate.py index 86d4c2904..b39049883 100644 --- a/supervisor/addons/validate.py +++ b/supervisor/addons/validate.py @@ -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 diff --git a/supervisor/docker/addon.py b/supervisor/docker/addon.py index 9887be85b..7db7a5c0b 100644 --- a/supervisor/docker/addon.py +++ b/supervisor/docker/addon.py @@ -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, )