···192192 .base_device_definitions()
193193 .get(&user_device_config_pair.identifier().into())
194194 {
195195- if let Ok(user_config) = user_device_config_pair
195195+ if let Ok(loaded_user_config) = user_device_config_pair
196196 .config()
197197- .build_from_base_definition(base_config)
198198- && let Err(e) =
199199- dcm_builder.user_device_definition(user_device_config_pair.identifier(), &user_config)
197197+ .build_from_base_definition(base_config) {
198198+ if let Err(e) =
199199+ dcm_builder.user_device_definition(user_device_config_pair.identifier(), &loaded_user_config)
200200 {
201201 error!(
202202 "Device definition not valid, skipping:\n{:?}\n{:?}",
203203 e, user_config
204204 )
205205 }
206206+ }
206207 } else {
207208 error!(
208209 "Device identifier {:?} does not have a match base identifier that matches anything in the base config, removing from database.",