mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-11-26 10:34:55 +00:00
Implement Flush Mounted Presence Sensor Routine Control and change the device type logic
This commit is contained in:
@ -12,7 +12,7 @@ class SceneStaticFunction {
|
||||
final String deviceId;
|
||||
final String operationName;
|
||||
final String? uniqueCustomId;
|
||||
final dynamic functionValue;
|
||||
dynamic functionValue;
|
||||
final String? deviceIcon;
|
||||
final OperationDialogType operationDialogType;
|
||||
final String? comparator;
|
||||
@ -29,7 +29,7 @@ class SceneStaticFunction {
|
||||
this.deviceIcon,
|
||||
required this.operationDialogType,
|
||||
this.comparator,
|
||||
this.deviceType,
|
||||
this.deviceType,
|
||||
String? uniqueCustomId,
|
||||
}) : uniqueCustomId = uniqueCustomId ?? const Uuid().v4();
|
||||
|
||||
@ -127,7 +127,8 @@ class SceneStaticFunction {
|
||||
other.uniqueCustomId == uniqueCustomId &&
|
||||
other.operationDialogType == operationDialogType &&
|
||||
listEquals(other.operationalValues, operationalValues) &&
|
||||
other.deviceId == deviceId && other.deviceType == deviceType;
|
||||
other.deviceId == deviceId &&
|
||||
other.deviceType == deviceType;
|
||||
}
|
||||
|
||||
@override
|
||||
@ -142,7 +143,8 @@ class SceneStaticFunction {
|
||||
comparator.hashCode ^
|
||||
uniqueCustomId.hashCode ^
|
||||
operationDialogType.hashCode ^
|
||||
operationalValues.hashCode ^ deviceType.hashCode;
|
||||
operationalValues.hashCode ^
|
||||
deviceType.hashCode;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user