mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
push connecting to automation api
This commit is contained in:
@ -5,18 +5,19 @@ import 'package:syncrow_web/pages/routiens/bloc/routine_bloc/routine_bloc.dart';
|
||||
import 'package:syncrow_web/pages/routiens/models/device_functions.dart';
|
||||
import 'package:syncrow_web/pages/routiens/widgets/dialog_header.dart';
|
||||
import 'package:syncrow_web/pages/routiens/widgets/dialog_footer.dart';
|
||||
import 'package:syncrow_web/utils/color_manager.dart';
|
||||
import 'package:syncrow_web/utils/constants/assets.dart';
|
||||
|
||||
class AutomationDialog extends StatefulWidget {
|
||||
final String automationName;
|
||||
final String automationId;
|
||||
final String uniqueCustomId;
|
||||
|
||||
const AutomationDialog({
|
||||
Key? key,
|
||||
super.key,
|
||||
required this.automationName,
|
||||
required this.automationId,
|
||||
}) : super(key: key);
|
||||
required this.uniqueCustomId,
|
||||
});
|
||||
|
||||
@override
|
||||
_AutomationDialogState createState() => _AutomationDialogState();
|
||||
@ -72,18 +73,19 @@ class _AutomationDialogState extends State<AutomationDialog> {
|
||||
[
|
||||
DeviceFunctionData(
|
||||
entityId: widget.automationId,
|
||||
functionCode: '',
|
||||
functionCode: 'automation',
|
||||
value: _isEnabled,
|
||||
operationName: 'Automation',
|
||||
),
|
||||
],
|
||||
widget.automationId,
|
||||
widget.uniqueCustomId,
|
||||
),
|
||||
);
|
||||
Navigator.of(context).pop(true);
|
||||
},
|
||||
onCancel: () => Navigator.of(context).pop(false),
|
||||
isConfirmEnabled: true,
|
||||
dialogWidth: 400,
|
||||
),
|
||||
],
|
||||
),
|
||||
|
Reference in New Issue
Block a user