Home Energy Management in 2021.8

Although I will wait until 2021.8 is released, I started updating my mqtt and template sensors to include device_class and state_class where appropriate. I came across a quirk (2021.7.4) where my template sensor configured in “Legacy” mode (i.e. sensor: platform: template: sensors) does not allow me to add state_class. Will state_class be added in 2021.8 to “Legacy” mode, or do I have to convert my “Legacy” mode to “Modern” mode (template: -sensor:) in order to add the state_class?

1 Like