fix: remove obsolete attributes from config.json

changes:
- removed unused attributes from config.json
This commit is contained in:
2020-09-07 19:12:30 +02:00
parent c279d288b4
commit 7cbd80c726
5 changed files with 18 additions and 234 deletions

View File

@ -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
}