1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Remove unnnecessary pylint configs from core (#98704)

This commit is contained in:
Ville Skyttä
2023-08-23 00:12:12 +03:00
committed by GitHub
parent e9af99e469
commit 6399d74c15
27 changed files with 27 additions and 63 deletions

View File

@@ -102,8 +102,6 @@ import homeassistant.util.dt as dt_util
from . import script_variables as script_variables_helper, template as template_helper
# pylint: disable=invalid-name
TIME_PERIOD_ERROR = "offset {} should be format 'HH:MM', 'HH:MM:SS' or 'HH:MM:SS.F'"
@@ -743,7 +741,6 @@ def socket_timeout(value: Any | None) -> object:
raise vol.Invalid(f"Invalid socket timeout: {err}") from err
# pylint: disable=no-value-for-parameter
def url(
value: Any,
_schema_list: frozenset[UrlProtocolSchema] = EXTERNAL_URL_PROTOCOL_SCHEMA_LIST,
@@ -1360,7 +1357,7 @@ STATE_CONDITION_ATTRIBUTE_SCHEMA = vol.Schema(
)
def STATE_CONDITION_SCHEMA(value: Any) -> dict: # pylint: disable=invalid-name
def STATE_CONDITION_SCHEMA(value: Any) -> dict:
"""Validate a state condition."""
if not isinstance(value, dict):
raise vol.Invalid("Expected a dictionary")