def boot() -> None: workflow_handlers.register( MessageType.DebugLinkDecision, dispatch_DebugLinkDecision ) # type: ignore [Argument of type "(ctx: Context, msg: DebugLinkDecision) -> Coroutine[Any, Any, None]" cannot be assigned to parameter "handler" of type "Handler[Msg@register]" in function "register"] workflow_handlers.register( MessageType.DebugLinkGetState, dispatch_DebugLinkGetState ) # type: ignore [Argument of type "(ctx: Context, msg: DebugLinkGetState) -> Coroutine[Any, Any, DebugLinkState | None]" cannot be assigned to parameter "handler" of type "Handler[Msg@register]" in function "register"] workflow_handlers.register(MessageType.DebugLinkReseedRandom, dispatch_DebugLinkReseedRandom) workflow_handlers.register(MessageType.DebugLinkRecordScreen, dispatch_DebugLinkRecordScreen) workflow_handlers.register(MessageType.DebugLinkEraseSdCard, dispatch_DebugLinkEraseSdCard) workflow_handlers.register(MessageType.DebugLinkWatchLayout, dispatch_DebugLinkWatchLayout) loop.schedule(debuglink_decision_dispatcher()) if storage.layout_watcher is not LAYOUT_WATCHER_NONE: loop.schedule(return_layout_change())
def boot() -> None: workflow_handlers.register(MessageType.DebugLinkDecision, dispatch_DebugLinkDecision) # type: ignore workflow_handlers.register(MessageType.DebugLinkGetState, dispatch_DebugLinkGetState) # type: ignore workflow_handlers.register( MessageType.DebugLinkReseedRandom, dispatch_DebugLinkReseedRandom ) workflow_handlers.register( MessageType.DebugLinkRecordScreen, dispatch_DebugLinkRecordScreen ) workflow_handlers.register( MessageType.DebugLinkEraseSdCard, dispatch_DebugLinkEraseSdCard ) workflow_handlers.register( MessageType.DebugLinkWatchLayout, dispatch_DebugLinkWatchLayout ) loop.schedule(debuglink_decision_dispatcher()) if storage.layout_watcher is not LAYOUT_WATCHER_NONE: loop.schedule(return_layout_change())