Having a name is independent of being registered, so the default text should be "Unnamed device". Also, can be coded more cleanly as:
`device_info[value] = device.name or "Unnamed device"`