feat: confirm socket controls by readback

This commit is contained in:
2026-08-26 19:27:40 +08:00
parent 876acd1e7b
commit a30ab9e376
8 changed files with 121 additions and 13 deletions
@@ -33,6 +33,15 @@ class SimulationSocketGateway : SocketGateway {
states[key] = powerState
return DomainResult.Success(SocketStatus(profileId, deviceName, powerState))
}
override suspend fun commandPower(
profileId: ProviderProfileId,
deviceName: DeviceName,
powerState: SocketPowerState,
): DomainResult<Unit> {
states[DeviceKey(profileId, deviceName)] = powerState
return DomainResult.Success(Unit)
}
}
class SimulationTemperatureHumidityGateway : TemperatureHumidityGateway {