Type mysensors strictly (#51535)
This commit is contained in:
parent
564042ec67
commit
7560a77e0e
17 changed files with 329 additions and 192 deletions
|
@ -68,7 +68,7 @@ async def handle_sketch_version(
|
|||
@callback
|
||||
def _handle_child_update(
|
||||
hass: HomeAssistant, gateway_id: GatewayId, validated: dict[str, list[DevId]]
|
||||
):
|
||||
) -> None:
|
||||
"""Handle a child update."""
|
||||
signals: list[str] = []
|
||||
|
||||
|
@ -91,7 +91,9 @@ def _handle_child_update(
|
|||
|
||||
|
||||
@callback
|
||||
def _handle_node_update(hass: HomeAssistant, gateway_id: GatewayId, msg: Message):
|
||||
def _handle_node_update(
|
||||
hass: HomeAssistant, gateway_id: GatewayId, msg: Message
|
||||
) -> None:
|
||||
"""Handle a node update."""
|
||||
signal = NODE_CALLBACK.format(gateway_id, msg.node_id)
|
||||
async_dispatcher_send(hass, signal)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue