ZIParameter.wait_for_state_change(value: int | str, *, invert: bool = False, timeout: float = 2, sleep_time: float = 0.005) None[source]#

Waits until the node has the expected state/value.

WARNING: Only supports integer values as reference.

  • value (int | str) – expected value of the node.

  • invert (bool) –

    Instead of waiting for the value, the function will wait for any value except the passed value instead. (default = False)

    Useful when waiting for value to change from existing one.

  • timeout (float) – max wait time. (default = 2)

  • sleep_time (float) – sleep interval in seconds. (default = 0.006)

Return type: