diff --git a/front/src/actions/device.js b/front/src/actions/device.js index dd2b183813..f2845bbdd3 100644 --- a/front/src/actions/device.js +++ b/front/src/actions/device.js @@ -54,7 +54,7 @@ function createActions(store) { [deviceIndex]: { features: { [deviceFeatureIndex]: { - lastValue: { + last_value: { $set: value } } diff --git a/front/src/components/boxs/device-in-room/device-features/BrightnessDeviceFeature.jsx b/front/src/components/boxs/device-in-room/device-features/BrightnessDeviceFeature.jsx index 971f0958bc..9e12c9603d 100644 --- a/front/src/components/boxs/device-in-room/device-features/BrightnessDeviceFeature.jsx +++ b/front/src/components/boxs/device-in-room/device-features/BrightnessDeviceFeature.jsx @@ -10,7 +10,7 @@ const BrightnessDeviceType = ({ children, ...props }) => { props.deviceIndex, props.deviceFeatureIndex, e.target.value, - props.deviceFeature.lastValue + props.deviceFeature.last_value ); } @@ -27,7 +27,7 @@ const BrightnessDeviceType = ({ children, ...props }) => { minHeight: '30px' }} type="range" - value={props.deviceFeature.lastValue} + value={props.deviceFeature.last_value} onChange={updateValue} class="form-control custom-range" step="1" diff --git a/front/src/components/boxs/device-in-room/device-features/MultiLevelDeviceFeature.jsx b/front/src/components/boxs/device-in-room/device-features/MultiLevelDeviceFeature.jsx index 1f96d9acda..ba1f7d7baf 100644 --- a/front/src/components/boxs/device-in-room/device-features/MultiLevelDeviceFeature.jsx +++ b/front/src/components/boxs/device-in-room/device-features/MultiLevelDeviceFeature.jsx @@ -10,7 +10,7 @@ const MultiLevelDeviceType = ({ children, ...props }) => { props.deviceIndex, props.deviceFeatureIndex, e.target.value, - props.deviceFeature.lastValue + props.deviceFeature.last_value ); } @@ -36,7 +36,7 @@ const MultiLevelDeviceType = ({ children, ...props }) => { minHeight: '30px' }} type="range" - value={props.deviceFeature.lastValue} + value={props.deviceFeature.last_value} onChange={updateValue} class="form-control custom-range" step="1"