feat: preserve infrared ownership in schema

This commit is contained in:
2026-08-26 19:49:39 +08:00
parent b537cd1824
commit 4798ae32ba
8 changed files with 35 additions and 2 deletions
@@ -39,6 +39,7 @@ class AddVirtualRemoteKey(
id = UUID.randomUUID().toString(),
remoteId = remoteId,
profileId = profileId,
hardwareDeviceName = remote.deviceName,
buttonId = buttonId,
displayName = trimmed,
assignedSlot = assignedSlot,
@@ -64,6 +64,7 @@ class CreateVirtualRemote(
id = UUID.randomUUID().toString(),
remoteId = remoteId,
profileId = profileId,
hardwareDeviceName = deviceName,
buttonId = template.buttonId,
displayName = template.displayName,
assignedSlot = (index + 1).toString(),
@@ -77,6 +78,7 @@ class CreateVirtualRemote(
id = UUID.randomUUID().toString(),
remoteId = remoteId,
profileId = profileId,
hardwareDeviceName = deviceName,
buttonId = template.buttonId,
displayName = template.displayName,
assignedSlot = null,
@@ -80,6 +80,7 @@ data class RemoteKeyBinding(
val id: String,
val remoteId: VirtualRemoteId,
val profileId: ProviderProfileId,
val hardwareDeviceName: DeviceName = DeviceName(""),
val buttonId: String,
val displayName: String,
val assignedSlot: String? = null,