From f9add57ed4a9736bcd2d7b30072fa8bec8696073 Mon Sep 17 00:00:00 2001 From: ElMoribond Date: Wed, 23 Jun 2021 15:48:56 +0200 Subject: [PATCH] Add ability to restart I restored the original line as it can be misleading. --- web/src/api/mqtt.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) => {