push display scenes and automations

This commit is contained in:
ashrafzarkanisala
2024-11-27 19:41:43 +03:00
parent 69e2295180
commit cf817fd5dc
13 changed files with 141 additions and 282 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ class ScenesModel {
name: json["name"] ?? '',
status: json["status"] ?? '',
type: json["type"] ?? '',
icon: (isAutomation ?? false)
icon: isAutomation == true
? Assets.automation
: json["icon"] as String?,
: (json["icon"] as String?),
);
Map<String, dynamic> toJson() => {