@ledvance/base 1.2.96 → 1.2.98

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.
@@ -42,6 +42,7 @@ export interface UAGroupInfo {
42
42
  config: any
43
43
  groupDevices: GroupDeviceInfo[]
44
44
  name: string
45
+ deviceIds: string[]
45
46
  }
46
47
 
47
48
  const initialState: NativeProps = {
@@ -58,7 +59,8 @@ const initialState: NativeProps = {
58
59
  dps: {},
59
60
  config: {},
60
61
  groupDevices: [],
61
- name: ''
62
+ name: '',
63
+ deviceIds: []
62
64
  },
63
65
  timeSchedule: false,
64
66
  energieverbrauch: {},
@@ -117,6 +119,7 @@ const nativePropsSlice = createSlice({
117
119
  }
118
120
  state.uaGroupInfo.dps = { ...state.uaGroupInfo.dps, ...action.payload.uaGroupInfo.dps }
119
121
  state.uaGroupInfo.config = action.payload.uaGroupInfo.config
122
+ state.uaGroupInfo.deviceIds = action.payload.uaGroupInfo.deviceIds ?? []
120
123
  },
121
124
  setGroupConfig: (state, action: PayloadAction<any>) => {
122
125
  state.uaGroupInfo.config = { ...state.uaGroupInfo.config, ...action.payload }
Binary file
package/src/res/index.ts CHANGED
@@ -76,5 +76,6 @@ export default {
76
76
  ic_smoke_alert_effect: require('./pic_smoke_alert_effct.png'),
77
77
  ic_smoke_alert_free: require('./pic_smoke_alert_free.png'),
78
78
  ic_water_alert_effect: require('./pic_water_alert_effct.png'),
79
- ic_water_alert_free: require('./pic_water_alert_free.png')
79
+ ic_water_alert_free: require('./pic_water_alert_free.png'),
80
+ flag_icon: require('./flag_icon.png')
80
81
  }
package/translateKey.txt CHANGED
@@ -864,3 +864,4 @@ smoke_alertfree
864
864
  CO_alertfree
865
865
  waterleakage_alertfree
866
866
  mute_smokealarm
867
+ group_energytotal