diff --git a/hass-workstation-service/Domain/Sensors/GpuLoadSensor.cs b/hass-workstation-service/Domain/Sensors/GpuLoadSensor.cs index 5120b6f..10ee77f 100644 --- a/hass-workstation-service/Domain/Sensors/GpuLoadSensor.cs +++ b/hass-workstation-service/Domain/Sensors/GpuLoadSensor.cs @@ -17,13 +17,13 @@ namespace hass_workstation_service.Domain.Sensors { _computer = new Computer { - IsCpuEnabled = true, + IsCpuEnabled = false, IsGpuEnabled = true, - IsMemoryEnabled = true, - IsMotherboardEnabled = true, - IsControllerEnabled = true, - IsNetworkEnabled = true, - IsStorageEnabled = true + IsMemoryEnabled = false, + IsMotherboardEnabled = false, + IsControllerEnabled = false, + IsNetworkEnabled = false, + IsStorageEnabled = false, }; _computer.Open(); @@ -55,7 +55,6 @@ namespace hass_workstation_service.Domain.Sensors { return "NotSupported"; } - return sensor.Value.HasValue ? sensor.Value.Value.ToString("#.##", CultureInfo.InvariantCulture) : "Unknown"; } } diff --git a/hass-workstation-service/Domain/Sensors/GpuTemperatureSensor.cs b/hass-workstation-service/Domain/Sensors/GpuTemperatureSensor.cs index 44c157c..6828f18 100644 --- a/hass-workstation-service/Domain/Sensors/GpuTemperatureSensor.cs +++ b/hass-workstation-service/Domain/Sensors/GpuTemperatureSensor.cs @@ -17,13 +17,13 @@ namespace hass_workstation_service.Domain.Sensors { _computer = new Computer { - IsCpuEnabled = true, + IsCpuEnabled = false, IsGpuEnabled = true, - IsMemoryEnabled = true, - IsMotherboardEnabled = true, - IsControllerEnabled = true, - IsNetworkEnabled = true, - IsStorageEnabled = true + IsMemoryEnabled = false, + IsMotherboardEnabled = false, + IsControllerEnabled = false, + IsNetworkEnabled = false, + IsStorageEnabled = false, }; _computer.Open(); @@ -56,7 +56,7 @@ namespace hass_workstation_service.Domain.Sensors { return "NotSupported"; } - + return sensor.Value.HasValue ? sensor.Value.Value.ToString("#.##", CultureInfo.InvariantCulture) : "Unknown"; } }