@iobroker/adapter-react-v5 4.4.5 → 4.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,6 +123,12 @@ declare class Connection {
123
123
  * @param {ioBroker.StateChangeHandler} cb The callback.
124
124
  */
125
125
  subscribeState(id: string, binary: boolean, cb: ioBroker.StateChangeHandler): void;
126
+ /**
127
+ * Subscribe to changes of the given state.
128
+ * @param {string} id The ioBroker state ID.
129
+ * @param {ioBroker.StateChangeHandler} cb The callback.
130
+ */
131
+ subscribeStateAsync(id: string, cb: ioBroker.StateChangeHandler): Promise<any>;
126
132
  /**
127
133
  * Unsubscribes all callbacks from changes of the given state.
128
134
  * @param {string} id The ioBroker state ID.