diff --git a/hass-workstation-service/Domain/Sensors/MicrophoneProcessSensor.cs b/hass-workstation-service/Domain/Sensors/MicrophoneProcessSensor.cs index f834740..645c67b 100644 --- a/hass-workstation-service/Domain/Sensors/MicrophoneProcessSensor.cs +++ b/hass-workstation-service/Domain/Sensors/MicrophoneProcessSensor.cs @@ -10,7 +10,7 @@ namespace hass_workstation_service.Domain.Sensors { public class MicrophoneProcessSensor : AbstractSensor { - private List processes = new List(); + private HashSet processes = new HashSet(); public MicrophoneProcessSensor(MqttPublisher publisher, int? updateInterval = null, string name = "MicrophoneProcess", Guid id = default) : base(publisher, name ?? "MicrophoneProcess", updateInterval ?? 10, id) { diff --git a/hass-workstation-service/Domain/Sensors/WebcamProcessSensor.cs b/hass-workstation-service/Domain/Sensors/WebcamProcessSensor.cs index a35b390..bc4c90b 100644 --- a/hass-workstation-service/Domain/Sensors/WebcamProcessSensor.cs +++ b/hass-workstation-service/Domain/Sensors/WebcamProcessSensor.cs @@ -10,7 +10,7 @@ namespace hass_workstation_service.Domain.Sensors { public class WebcamProcessSensor : AbstractSensor { - private List processes = new List(); + private HashSet processes = new HashSet(); public WebcamProcessSensor(MqttPublisher publisher, int? updateInterval = null, string name = "WebcamProcess", Guid id = default) : base(publisher, name ?? "WebcamProcess", updateInterval ?? 10, id) {