refac(pkg/types): remove deprecated prefix name of struct attributes

This commit is contained in:
2020-01-10 22:03:49 +01:00
parent 95fb1f6745
commit 2cd2188dcb
16 changed files with 176 additions and 314 deletions

View File

@ -38,10 +38,10 @@ flucky sensor add --i2c-bus 1 --i2c-address 0x76 wetter-station BME280`,
// create new sensor struct
sensor := &types.Sensor{
SensorName: args[0],
SensorModel: sensorModel,
SensorLocation: location,
SensorEnabled: enabled,
Name: args[0],
Model: sensorModel,
Location: location,
Enabled: enabled,
}
// determine gpio port if set