1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2025-12-22 03:19:03 +00:00

Bump pylint from 2.10.2 to 2.11.1 (#3128)

* Bump pylint from 2.10.2 to 2.11.1

Bumps [pylint](https://github.com/PyCQA/pylint) from 2.10.2 to 2.11.1.
- [Release notes](https://github.com/PyCQA/pylint/releases)
- [Changelog](https://github.com/PyCQA/pylint/blob/main/ChangeLog)
- [Commits](https://github.com/PyCQA/pylint/compare/v2.10.2...v2.11.1)

---
updated-dependencies:
- dependency-name: pylint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix linter issues

* fix tests lint

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
This commit is contained in:
dependabot[bot]
2021-09-22 14:33:32 +02:00
committed by GitHub
parent 96f6c07912
commit a85e816cd7
14 changed files with 18 additions and 24 deletions

View File

@@ -114,8 +114,8 @@ class HomeAssistant(FileConfiguration, CoreSysAttributes):
@property
def api_url(self) -> str:
"""Return API url to Home Assistant."""
return "{}://{}:{}".format(
"https" if self.api_ssl else "http", self.ip_address, self.api_port
return (
f"{'https' if self.api_ssl else 'http'}://{self.ip_address}:{self.api_port}"
)
@property
@@ -257,8 +257,7 @@ class HomeAssistant(FileConfiguration, CoreSysAttributes):
# Write pulse config
try:
with self.path_pulse.open("w") as config_file:
config_file.write(pulse_config)
self.path_pulse.write_text(pulse_config, encoding="utf-8")
except OSError as err:
_LOGGER.error("Home Assistant can't write pulse/client.config: %s", err)
else: