mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Fix inheritance in zha general channel (#73774)
Fix general channel type hints in zha
This commit is contained in:
parent
78dd522ccd
commit
21275669d5
@ -408,9 +408,9 @@ class OnOffConfiguration(ZigbeeChannel):
|
|||||||
"""OnOff Configuration channel."""
|
"""OnOff Configuration channel."""
|
||||||
|
|
||||||
|
|
||||||
@registries.CLIENT_CHANNELS_REGISTRY.register(general.Ota.cluster_id)
|
|
||||||
@registries.ZIGBEE_CHANNEL_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."""
|
"""OTA Channel."""
|
||||||
|
|
||||||
BIND: bool = False
|
BIND: bool = False
|
||||||
@ -427,6 +427,7 @@ class Ota(ZigbeeChannel):
|
|||||||
|
|
||||||
signal_id = self._ch_pool.unique_id.split("-")[0]
|
signal_id = self._ch_pool.unique_id.split("-")[0]
|
||||||
if cmd_name == "query_next_image":
|
if cmd_name == "query_next_image":
|
||||||
|
assert args
|
||||||
self.async_send_signal(SIGNAL_UPDATE_DEVICE.format(signal_id), args[3])
|
self.async_send_signal(SIGNAL_UPDATE_DEVICE.format(signal_id), args[3])
|
||||||
|
|
||||||
|
|
||||||
|
3
mypy.ini
3
mypy.ini
@ -2997,9 +2997,6 @@ ignore_errors = true
|
|||||||
[mypy-homeassistant.components.zha.core.channels.base]
|
[mypy-homeassistant.components.zha.core.channels.base]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
[mypy-homeassistant.components.zha.core.channels.general]
|
|
||||||
ignore_errors = true
|
|
||||||
|
|
||||||
[mypy-homeassistant.components.zha.core.channels.homeautomation]
|
[mypy-homeassistant.components.zha.core.channels.homeautomation]
|
||||||
ignore_errors = true
|
ignore_errors = true
|
||||||
|
|
||||||
|
@ -148,7 +148,6 @@ IGNORED_MODULES: Final[list[str]] = [
|
|||||||
"homeassistant.components.zha.button",
|
"homeassistant.components.zha.button",
|
||||||
"homeassistant.components.zha.climate",
|
"homeassistant.components.zha.climate",
|
||||||
"homeassistant.components.zha.core.channels.base",
|
"homeassistant.components.zha.core.channels.base",
|
||||||
"homeassistant.components.zha.core.channels.general",
|
|
||||||
"homeassistant.components.zha.core.channels.homeautomation",
|
"homeassistant.components.zha.core.channels.homeautomation",
|
||||||
"homeassistant.components.zha.core.channels.hvac",
|
"homeassistant.components.zha.core.channels.hvac",
|
||||||
"homeassistant.components.zha.core.channels.security",
|
"homeassistant.components.zha.core.channels.security",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user