1
mirror of https://github.com/home-assistant/core synced 2024-09-03 08:14:07 +02:00

Fix inheritance in zha general channel (#73774)

Fix general channel type hints in zha
This commit is contained in:
epenet 2022-06-22 03:00:58 +02:00 committed by GitHub
parent 78dd522ccd
commit 21275669d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 6 deletions

View File

@ -408,9 +408,9 @@ class OnOffConfiguration(ZigbeeChannel):
"""OnOff Configuration channel."""
@registries.CLIENT_CHANNELS_REGISTRY.register(general.Ota.cluster_id)
@registries.ZIGBEE_CHANNEL_REGISTRY.register(general.Ota.cluster_id)
class Ota(ZigbeeChannel):
@registries.CLIENT_CHANNELS_REGISTRY.register(general.Ota.cluster_id)
class Ota(ClientChannel):
"""OTA Channel."""
BIND: bool = False
@ -427,6 +427,7 @@ class Ota(ZigbeeChannel):
signal_id = self._ch_pool.unique_id.split("-")[0]
if cmd_name == "query_next_image":
assert args
self.async_send_signal(SIGNAL_UPDATE_DEVICE.format(signal_id), args[3])

View File

@ -2997,9 +2997,6 @@ ignore_errors = true
[mypy-homeassistant.components.zha.core.channels.base]
ignore_errors = true
[mypy-homeassistant.components.zha.core.channels.general]
ignore_errors = true
[mypy-homeassistant.components.zha.core.channels.homeautomation]
ignore_errors = true

View File

@ -148,7 +148,6 @@ IGNORED_MODULES: Final[list[str]] = [
"homeassistant.components.zha.button",
"homeassistant.components.zha.climate",
"homeassistant.components.zha.core.channels.base",
"homeassistant.components.zha.core.channels.general",
"homeassistant.components.zha.core.channels.homeautomation",
"homeassistant.components.zha.core.channels.hvac",
"homeassistant.components.zha.core.channels.security",