The 'unit_of_measurement' option is deprecated, please remove it from your configuration

This warning shows up in logs but I don’t see any mention of it in the docs or alternatives, furthermore, the examples for template sensor are still using it
Any idea if this is really going away?

1 Like

Please post the full error.

ok. I now noticed it’s tracking back to the uptime component, removed from this module only.
keeping the question for future reference :slight_smile:

From the docs

The uptime sensor stores the timestamp (date and time) when Home Assistant was last started.

unit_of_measurement makes no sense for this sensor.

It probably did when the sensor showed the time the device had been up (which could be seconds, minutes, hours etc) but now it shows the time it started, units are irrelevant.