Skip to content

Commit

Permalink
fix hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
bachya committed Jun 28, 2024
1 parent 40d2b36 commit 78f7070
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ecowitt2mqtt/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def get_cli_arguments(args: list[str]) -> dict[str, Any]:
parser.add_argument(
"--locale",
dest=CONF_LOCALE,
help=f"The locale to set (default: system default)",
help="The locale to set (default: system default)",
metavar=CONF_LOCALE,
)
parser.add_argument(
Expand Down
4 changes: 2 additions & 2 deletions ecowitt2mqtt/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ def __init__(self, params: dict[str, Any]) -> None:
LOGGER.debug("Input CLI options/environment variables: %s", params)
LOGGER.debug("Configs loaded: %s", self.configs)

if locale := self.configs.default_config.locale:
if provided_locale := self.configs.default_config.locale:
LOGGER.debug("Setting locale: %s", self.configs.default_config.locale)
locale.setlocale(locale.LC_ALL, locale)
locale.setlocale(locale.LC_ALL, provided_locale)

self.runtime = Runtime(self)

Expand Down

0 comments on commit 78f7070

Please sign in to comment.