Expose Attribute enum in device_tracker and text (#175502)