diff --git a/web/src/api/mqtt.jsx b/web/src/api/mqtt.jsx index 560f8dcce..29f6b1634 100644 --- a/web/src/api/mqtt.jsx +++ b/web/src/api/mqtt.jsx @@ -75,7 +75,7 @@ export function MqttProvider({ export function useMqtt(watchTopic, publishTopic, defaultValue = null) { const { state, ws } = useContext(Mqtt); - const value = state[watchTopic] || { payload: defaultValue }; + const value = state[watchTopic] || { payload: null }; const send = useCallback( (payload) => {