SelectXDevice: use lowercase validate_inputs for V3 combo bypass

V3 io.ComfyNode subclasses use the lowercase `validate_inputs` hook for opting out of strict combo validation (execution.py line 862); the uppercase `VALIDATE_INPUTS` is the V1 spelling and is ignored on V3 nodes. The strict combo check at execution.py line 1025 is gated on `if x not in validate_function_inputs`, so renaming to `validate_inputs(cls, device='default')` lets unknown `gpu:N` values pass validation and fall through to the runtime fallback.

Amp-Thread-ID: https://ampcode.com/threads/T-019e52b4-31ee-72cd-996b-64ecd9420e13
Co-authored-by: Amp <amp@ampcode.com>
This commit is contained in:
Jedrzej Kosinski 2026-05-22 21:50:29 -07:00
parent 4e650055d0
commit 9ee1540882

View File

@ -74,7 +74,7 @@ class SelectModelDeviceNode(io.ComfyNode):
)
@classmethod
def VALIDATE_INPUTS(cls, device="default"):
def validate_inputs(cls, device="default"):
# Allow unknown gpu:N values so portable workflows do not error
# at validation time; runtime fallback will handle them.
return True
@ -123,7 +123,7 @@ class SelectCLIPDeviceNode(io.ComfyNode):
)
@classmethod
def VALIDATE_INPUTS(cls, device="default"):
def validate_inputs(cls, device="default"):
return True
@classmethod
@ -172,7 +172,7 @@ class SelectVAEDeviceNode(io.ComfyNode):
)
@classmethod
def VALIDATE_INPUTS(cls, device="default"):
def validate_inputs(cls, device="default"):
return True
@classmethod