Skip to content

Commit

Permalink
Update pylint to 2.13.7 (home-assistant#70381)
Browse files Browse the repository at this point in the history
* Update pylint to 2.13.7

* Spelling

* Remove old pylint config value

* Code updates
  • Loading branch information
cdce8p authored Apr 21, 2022
1 parent 020f94f commit 90dab23
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
8 changes: 5 additions & 3 deletions homeassistant/components/xiaomi_miio/diagnostics.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""Diagnostics support for Xiaomi Miio."""
from __future__ import annotations

from typing import Any

from homeassistant.components.diagnostics import async_redact_data
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_MAC, CONF_TOKEN, CONF_UNIQUE_ID
Expand All @@ -19,9 +21,9 @@

async def async_get_config_entry_diagnostics(
hass: HomeAssistant, config_entry: ConfigEntry
) -> dict:
) -> dict[str, Any]:
"""Return diagnostics for a config entry."""
diagnostics_data = {
diagnostics_data: dict[str, Any] = {
"config_entry": async_redact_data(config_entry.as_dict(), TO_REDACT)
}

Expand All @@ -30,6 +32,6 @@ async def async_get_config_entry_diagnostics(
if isinstance(coordinator.data, dict):
diagnostics_data["coordinator_data"] = coordinator.data
else:
diagnostics_data["coordinator_data"] = coordinator.data.__repr__()
diagnostics_data["coordinator_data"] = repr(coordinator.data)

return diagnostics_data
2 changes: 1 addition & 1 deletion homeassistant/helpers/integration_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async def async_process_integration_platform_for_component(
are created.
"""
if DATA_INTEGRATION_PLATFORMS not in hass.data:
# There are no integraton platforms loaded yet
# There are no integration platforms loaded yet
return
integration_platforms: list[IntegrationPlatform] = hass.data[
DATA_INTEGRATION_PLATFORMS
Expand Down
1 change: 0 additions & 1 deletion homeassistant/helpers/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,6 @@ class TemplateState(TemplateStateBase):
__slots__ = ("_state",)

# Inheritance is done so functions that check against State keep working
# pylint: disable=super-init-not-called
def __init__(self, hass: HomeAssistant, state: State, collect: bool = True) -> None:
"""Initialize template state."""
super().__init__(hass, collect, state.entity_id)
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ good-names = [
# consider-using-assignment-expr (Pylint CodeStyle extension)
disable = [
"format",
"abstract-class-little-used",
"abstract-method",
"cyclic-import",
"duplicate-code",
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ freezegun==1.2.1
mock-open==1.4.0
mypy==0.942
pre-commit==2.17.0
pylint==2.13.5
pylint==2.13.7
pipdeptree==2.2.1
pylint-strict-informational==0.1
pytest-aiohttp==0.3.0
Expand Down

0 comments on commit 90dab23

Please sign in to comment.