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)