From 4bc13144995f0a68d24376aac375becce5ca92b7 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 21 Jun 2022 00:32:32 +0200 Subject: [PATCH] Fix REPORT_CONFIG type hint in zha (#73762) Fix REPORT_CONFIG type hint --- homeassistant/components/zha/core/channels/base.py | 2 +- mypy.ini | 12 ------------ script/hassfest/mypy_config.py | 4 ---- 3 files changed, 1 insertion(+), 17 deletions(-) diff --git a/homeassistant/components/zha/core/channels/base.py b/homeassistant/components/zha/core/channels/base.py index c9472af5938..de943ebac16 100644 --- a/homeassistant/components/zha/core/channels/base.py +++ b/homeassistant/components/zha/core/channels/base.py @@ -109,7 +109,7 @@ class ChannelStatus(Enum): class ZigbeeChannel(LogMixin): """Base channel for a Zigbee cluster.""" - REPORT_CONFIG: tuple[AttrReportConfig] = () + REPORT_CONFIG: tuple[AttrReportConfig, ...] = () BIND: bool = True # Dict of attributes to read on channel initialization. diff --git a/mypy.ini b/mypy.ini index 27aa6653357..98884d333e7 100644 --- a/mypy.ini +++ b/mypy.ini @@ -2997,9 +2997,6 @@ ignore_errors = true [mypy-homeassistant.components.zha.core.channels.base] ignore_errors = true -[mypy-homeassistant.components.zha.core.channels.closures] -ignore_errors = true - [mypy-homeassistant.components.zha.core.channels.general] ignore_errors = true @@ -3009,15 +3006,6 @@ ignore_errors = true [mypy-homeassistant.components.zha.core.channels.hvac] ignore_errors = true -[mypy-homeassistant.components.zha.core.channels.lighting] -ignore_errors = true - -[mypy-homeassistant.components.zha.core.channels.manufacturerspecific] -ignore_errors = true - -[mypy-homeassistant.components.zha.core.channels.measurement] -ignore_errors = true - [mypy-homeassistant.components.zha.core.channels.security] ignore_errors = true diff --git a/script/hassfest/mypy_config.py b/script/hassfest/mypy_config.py index a16faf7f34e..b519e7f2daf 100644 --- a/script/hassfest/mypy_config.py +++ b/script/hassfest/mypy_config.py @@ -148,13 +148,9 @@ IGNORED_MODULES: Final[list[str]] = [ "homeassistant.components.zha.button", "homeassistant.components.zha.climate", "homeassistant.components.zha.core.channels.base", - "homeassistant.components.zha.core.channels.closures", "homeassistant.components.zha.core.channels.general", "homeassistant.components.zha.core.channels.homeautomation", "homeassistant.components.zha.core.channels.hvac", - "homeassistant.components.zha.core.channels.lighting", - "homeassistant.components.zha.core.channels.manufacturerspecific", - "homeassistant.components.zha.core.channels.measurement", "homeassistant.components.zha.core.channels.security", "homeassistant.components.zha.core.channels.smartenergy", "homeassistant.components.zha.core.device",