Skip to content

Commit e57483b

Browse files
committed
Keep id backward compatibility
1 parent 1c65a13 commit e57483b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

DeviceTemp.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,16 @@ public DeviceTemp(SWIGTYPE_p__ctl_temp_handle_t handle)
1414
using (var properties = new ctl_temp_properties_t())
1515
{
1616
CtlLibrary.ctlTemperatureGetProperties(handle, properties);
17+
Id = properties.type.ToString();
1718
Name = TypeToString(properties.type);
1819
}
1920

2021
_handle = handle;
2122
doublePtr = CtlLibrary.new_double_Ptr();
2223
}
2324

25+
public string Id { get; }
26+
2427
public string Name { get; }
2528

2629
public double GetValue()

DeviceTemperaturePluginSensor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public DeviceTemperaturePluginSensor(Device device, DeviceTemp deviceTemp)
1414
_deviceTemp = deviceTemp;
1515
}
1616

17-
public string Id => $"IntelCtlLibrary/{_device.Index}/temp/{_deviceTemp.Name}";
17+
public string Id => $"IntelCtlLibrary/{_device.Index}/temp/{_deviceTemp.Id}";
1818

1919
public string Name => $"{_device.Name} - {_deviceTemp.Name}";
2020

0 commit comments

Comments
 (0)