@ledvance/base 1.2.86 → 1.2.88

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.
@@ -41,6 +41,7 @@ export interface UAGroupInfo {
41
41
  dps: any
42
42
  config: any
43
43
  groupDevices: GroupDeviceInfo[]
44
+ name: string
44
45
  }
45
46
 
46
47
  const initialState: NativeProps = {
@@ -56,7 +57,8 @@ const initialState: NativeProps = {
56
57
  pId: '',
57
58
  dps: {},
58
59
  config: {},
59
- groupDevices: []
60
+ groupDevices: [],
61
+ name: ''
60
62
  },
61
63
  timeSchedule: false,
62
64
  energieverbrauch: {},
@@ -98,9 +100,15 @@ const nativePropsSlice = createSlice({
98
100
  },
99
101
  setGroupNativeProps: (state, action: PayloadAction<NativeProps>) => {
100
102
  state.uaGroupInfo.tyGroupId = action.payload.uaGroupInfo.tyGroupId
103
+ if (!!action.payload.uaGroupInfo.name) {
104
+ state.uaGroupInfo.name = action.payload.uaGroupInfo.name
105
+ }
101
106
  if (!!action.payload.familyName) {
102
107
  state.familyName = action.payload.familyName
103
108
  }
109
+ if (!!action.payload.uaGroupInfo.name) {
110
+ state.uaGroupInfo.name = action.payload.uaGroupInfo.name
111
+ }
104
112
  if (isNumber(action.payload.role)) {
105
113
  state.role = action.payload.role
106
114
  }