@ledvance/base 1.1.50 → 1.1.51

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.
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "@ledvance/base",
5
5
  "pid": [],
6
6
  "uiid": "",
7
- "version": "1.1.50",
7
+ "version": "1.1.51",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "@reduxjs/toolkit": "^1.8.6",
@@ -51,7 +51,7 @@ export declare class NativeApi {
51
51
  static setDps<T>(deviceId: string, dps: any): Promise<NativeResult<T>>;
52
52
  static deleteDevice(deviceId: string, isReset: boolean): Promise<NativeResult<any>>;
53
53
  static renameDevice(deviceId: string, name: string): Promise<NativeResult<any>>;
54
- static toDeviceSettingsPage(deviceId: string): void;
54
+ static toDeviceSettingsPage(deviceId: string, isGroup?: boolean): void;
55
55
  static putJson(deviceId: string, featureType: string, json: string): Promise<Result<any>>;
56
56
  static getJson(deviceId: string, featureType: string): Promise<Result<any>>;
57
57
  static groupControl(tyGroupId: number, dps: string, config: string): Promise<Result<any>>;
package/src/api/native.ts CHANGED
@@ -257,8 +257,8 @@ export class NativeApi {
257
257
  return rename(deviceId, name)
258
258
  }
259
259
 
260
- static toDeviceSettingsPage(deviceId: string): void {
261
- toDeviceSettingsPage(deviceId)
260
+ static toDeviceSettingsPage(deviceId: string, isGroup: boolean = false): void {
261
+ toDeviceSettingsPage(deviceId, isGroup)
262
262
  }
263
263
 
264
264
  static putJson(deviceId: string, featureType: string, json: string): Promise<Result<any>> {