fixed automation and tab to run bugs

This commit is contained in:
ashraf_personal
2024-11-27 00:30:13 +03:00
parent 8d908e894b
commit 644e56aa7a
5 changed files with 374 additions and 156 deletions

View File

@ -29,11 +29,13 @@ class SceneApi {
rethrow;
}
}
//
// create automation
static Future<Map<String, dynamic>> createAutomation(
CreateAutomationModel createAutomationModel) async {
try {
debugPrint("automation body ${createAutomationModel.toMap()}");
final response = await _httpService.post(
path: ApiEndpoints.createAutomation,
body: createAutomationModel.toMap(),
@ -42,8 +44,10 @@ class SceneApi {
return json;
},
);
debugPrint('create automation response: $response');
return response;
} catch (e) {
debugPrint(e.toString());
rethrow;
}
}