changed #temperature_scale to be a device attribute