From 50c277137da20d294ab083ed44c9b5b78e2665c2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 17 Sep 2022 09:56:03 +0200 Subject: [PATCH] Bump pylint from 2.14.5 to 2.15.2 (#3849) * Bump pylint from 2.14.5 to 2.15.2 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.14.5 to 2.15.2. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Commits](https://github.com/PyCQA/pylint/compare/v2.14.5...v2.15.2) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * fix unspecified-encoding pylint errors Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mike Degatano --- requirements_tests.txt | 2 +- supervisor/plugins/audio.py | 4 +++- supervisor/plugins/dns.py | 8 ++++++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/requirements_tests.txt b/requirements_tests.txt index e29e1dd09..815f194f1 100644 --- a/requirements_tests.txt +++ b/requirements_tests.txt @@ -5,7 +5,7 @@ flake8-docstrings==1.6.0 flake8==5.0.4 pre-commit==2.20.0 pydocstyle==6.1.1 -pylint==2.14.5 +pylint==2.15.2 pytest-aiohttp==1.0.4 pytest-asyncio==0.18.3 pytest-cov==3.0.0 diff --git a/supervisor/plugins/audio.py b/supervisor/plugins/audio.py index df6b6d81a..692ee03a7 100644 --- a/supervisor/plugins/audio.py +++ b/supervisor/plugins/audio.py @@ -78,7 +78,9 @@ class PluginAudio(PluginBase): """Load Audio setup.""" # Initialize Client Template try: - self.client_template = jinja2.Template(PULSE_CLIENT_TMPL.read_text()) + self.client_template = jinja2.Template( + PULSE_CLIENT_TMPL.read_text(encoding="utf-8") + ) except OSError as err: _LOGGER.error("Can't read pulse-client.tmpl: %s", err) diff --git a/supervisor/plugins/dns.py b/supervisor/plugins/dns.py index 9fff92c43..b73faa9f5 100644 --- a/supervisor/plugins/dns.py +++ b/supervisor/plugins/dns.py @@ -141,11 +141,15 @@ class PluginDns(PluginBase): """Load DNS setup.""" # Initialize CoreDNS Template try: - self.resolv_template = jinja2.Template(RESOLV_TMPL.read_text()) + self.resolv_template = jinja2.Template( + RESOLV_TMPL.read_text(encoding="utf-8") + ) except OSError as err: _LOGGER.error("Can't read resolve.tmpl: %s", err) try: - self.hosts_template = jinja2.Template(HOSTS_TMPL.read_text()) + self.hosts_template = jinja2.Template( + HOSTS_TMPL.read_text(encoding="utf-8") + ) except OSError as err: _LOGGER.error("Can't read hosts.tmpl: %s", err)