WTH: UI support for changing device class of sensor entity via "Show as" selector

You can change the device_class of a binary sensor via the “Show as” selector in the UI, but this functionality is not available for (non-binary) sensors. It would be great to have similar functionality for the sensor domain.

Example: I use the min/max/mean helper to create average temperature measurements from multiple temperature sensors. However, the min/max/mean sensor does not inherit a device_class or icon from the constituent sensors, and the only way to set the appropriate device_class is through YAML.