Known unit is not displayed on the dashboard

Hi. I have several different sensors configured using MQTT.
Here’s a part of my configuration file:

- platform: mqtt
  state_topic: "pixelweather/node_1/HUMIDITY"
  name: "Node 1 Humidity"
  force_update: true
  state_class: measurement
  device_class: humidity
  value_template: "{{ value | round(0) }}"

Everything seems to work fine, however, there’s one little thing that kinda bugs me.
So as you can see, device_class is defined, which means that Home Assistant automatically sets the icon and unit of measurement. Problem is, that the is unit is not displayed on the dashboard. If I click on this entity, and point somewhere on the graph, a little gray popup shows, displaying the value with the unit, so HA knows the unit, but then why isn’t it displayed on the dashboard?


As you can see, the units are not displayed here.


But here, it’s displayed just fine. The same applies to the humidity entity, and the battery voltage entity.
Could someone please help me out?

Edit: I know I can add unit_of_measurement, but do I have to add it even if it’s set automatically by defining device_class?

Yes, if you want it to appear in the places you are not seeing it now.