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] <support@github.com>

* fix unspecified-encoding pylint errors

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mike Degatano <michael.degatano@gmail.com>
This commit is contained in:
dependabot[bot] 2022-09-17 09:56:03 +02:00 committed by GitHub
parent 99bc201688
commit 50c277137d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -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)

View File

@ -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)