This commit is contained in:
Marc Duiker 2023-03-06 21:57:57 +01:00
parent bc16b76594
commit 48d8fb3e77
1 changed files with 2 additions and 2 deletions

View File

@ -79,8 +79,8 @@ internal class ControllerActor : Actor, IController
public async Task TriggerAlarmForAllDetectors()
{
var data = await StateManager.GetStateAsync<ControllerData>("controllerData");
foreach (var deviceId in data.DeviceIds)
var deviceIds = await ListRegisteredDeviceIdsAsync();
foreach (var deviceId in deviceIds)
{
var actorId = new ActorId(deviceId);
var proxySmartDevice = ProxyFactory.CreateActorProxy<ISmartDevice>(actorId, "SmokeDetectorActor");