MELCloud & MELCloud Home API for Node.js - v23.3.3
    Preparing search index...

    Function updateDevice

    • Method decorator that converts API response data back to list format and updates the device model, using effective flags to determine which fields changed.

      Type Parameters

      Parameters

      • target: (...args: any[]) => Promise<TData>

        The original method to wrap.

      • _context: ClassMethodDecoratorContext

        Decorator context provided by the runtime.

      Returns (...args: unknown[]) => Promise<TData>

      A wrapper that updates the device model after calling the original method.