Add CPS case to device function switch for ceiling sensor integration

This commit is contained in:
Faris Armoush
2025-04-09 15:41:28 +03:00
parent c1d9846899
commit 120ed85d10

View File

@ -10,6 +10,7 @@ import 'package:syncrow_web/pages/routines/models/gang_switches/three_gang_switc
import 'package:syncrow_web/pages/routines/models/gang_switches/two_gang_switch/two_gang_switch.dart'; import 'package:syncrow_web/pages/routines/models/gang_switches/two_gang_switch/two_gang_switch.dart';
import 'package:syncrow_web/pages/routines/models/gateway.dart'; import 'package:syncrow_web/pages/routines/models/gateway.dart';
import 'package:syncrow_web/pages/routines/models/wps/wps_functions.dart'; import 'package:syncrow_web/pages/routines/models/wps/wps_functions.dart';
import 'package:syncrow_web/pages/routines/widgets/routine_dialogs/ceiling_sensor/ceiling_sensor_helper.dart';
import 'package:syncrow_web/utils/constants/assets.dart'; import 'package:syncrow_web/utils/constants/assets.dart';
import 'package:syncrow_web/utils/enum/device_types.dart'; import 'package:syncrow_web/utils/enum/device_types.dart';
@ -337,6 +338,11 @@ SOS
type: 'BOTH', type: 'BOTH',
), ),
]; ];
case 'CPS':
return CeilingSensorHelper.getCeilingSensorFunctions(
uuid: uuid ?? '',
name: name ?? '',
);
default: default:
return []; return [];
} }