From bca31f3a90adaf542609ef7afdbd9cc9499f9a80 Mon Sep 17 00:00:00 2001 From: 1riatsila1 Date: Wed, 30 Oct 2024 12:22:17 +0000 Subject: [PATCH] model number now required in provider too --- pkg/config-api-provider/provider/data-sources/sensor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/config-api-provider/provider/data-sources/sensor.go b/pkg/config-api-provider/provider/data-sources/sensor.go index 08f2f3a3..25f624fa 100644 --- a/pkg/config-api-provider/provider/data-sources/sensor.go +++ b/pkg/config-api-provider/provider/data-sources/sensor.go @@ -125,7 +125,7 @@ func (d *sensorDataSource) Read(ctx context.Context, req datasource.ReadRequest, state.Id = types.StringValue(sensor.Id) state.Name = types.StringValue(sensor.Name) - state.ModelNumber = types.StringPointerValue(sensor.ModelNumber.Get()) + state.ModelNumber = types.StringValue(sensor.ModelNumber) state.WifiMacAddress = types.StringPointerValue(sensor.WifiMacAddress.Get()) state.EthernetMacAddress = types.StringPointerValue(sensor.EthernetMacAddress.Get()) state.AddressNote = types.StringPointerValue(sensor.AddressNote.Get())