fix: remove obsolete attributes from config.json
changes: - removed unused attributes from config.json
This commit is contained in:
@ -164,7 +164,7 @@ func addSensor(cmd *cobra.Command, args []string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
sensor.DeviceID = cnf.Device.ID
|
||||
sensor.DeviceID = cnf.DeviceID
|
||||
|
||||
dsnURL, err := url.Parse(cnf.DSN)
|
||||
if err != nil {
|
||||
@ -292,7 +292,7 @@ func listSensors(cmd *cobra.Command, args []string) error {
|
||||
}
|
||||
|
||||
// add sensor entry to list
|
||||
sensors, err := repo.GetSensorsByDeviceID(cnf.Device.ID)
|
||||
sensors, err := repo.GetSensorsByDeviceID(cnf.DeviceID)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
Reference in New Issue
Block a user