feat: confirm socket controls by readback
This commit is contained in:
+9
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user