Add Detection Sensor Module (#139)

* detection sensor

* bump version
This commit is contained in:
Ben Lipsey authored and GitHub committed 2023-10-26 08:31:14 +10:00
1 parent aa75389cfe
commit 7256454ea7
5 files changed
+161 -1

No files matched your search

+3
View File
@@ -185,6 +185,9 @@ export const useDeviceStore = create<DeviceState>((set, get) => ({
if (device) {
switch (config.payloadVariant.case) {
case "detectionSensor":
device.moduleConfig.detectionSensor = config.payloadVariant.value;
break;
case "mqtt":
device.moduleConfig.mqtt = config.payloadVariant.value;
break;