Use state attribute enums in temperature (#175967)