Replace string literal with existing const in ZHA (#137576)

This commit is contained in:
Abílio Costa 2025-02-06 17:54:59 +00:00 committed by GitHub
parent 711dd7f05b
commit 9a9822140e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,6 +37,7 @@ from zha.application.const import (
WARNING_DEVICE_STROBE_HIGH,
WARNING_DEVICE_STROBE_YES,
ZHA_CLUSTER_HANDLER_MSG,
ZHA_GW_MSG,
)
from zha.application.gateway import Gateway
from zha.application.helpers import (
@ -330,7 +331,7 @@ async def websocket_permit_devices(
connection.send_message(websocket_api.event_message(msg["id"], data))
remove_dispatcher_function = async_dispatcher_connect(
hass, "zha_gateway_message", forward_messages
hass, ZHA_GW_MSG, forward_messages
)
@callback