Trying to get humidity sensors displaying together (MQTT & Nest)

I have several MQTT humidity sensors that are displaying together on the history graph card. The only sensor that isn’t is the template sensor created from the climate/badnest integration. For the unit_of_measurement, I’ve tried using “%Humidity” and “%” for both sensors. They still show on the graph separately. The template sensor shows as “%Humidity” regardless of what I set it to. The temperature sensors with “ºF” have been showing together no problem. This is really bothering me and I can’t seem to find an answer in the forums or documentation. Any assistance would be greatly appreciated.
I’m getting the unformatted code warning, even though I’m pretty sure I’m using the backticks correctly. I apologize if something is not right with this post. It’s my first time.

  - platform: mqtt
    name: "Test Humidity"
    state_topic: "tele/testtemp/SENSOR"
    value_template: "{{ value_json['AM2301'].Humidity | round|int }}"
    force_update: true 
    unit_of_measurement: "%Humidity"
  - platform: template
    sensors:
      hallway_humidity:
        friendly_name: "Hallway Humidity"
        value_template: >-
          {{ state_attr('climate.hallway_thermostat', 'current_humidity') | round|int }}
        unit_of_measurement: "%Humidity"

you need to add a device class to your template sensor

Thank you lolouk44! I was unaware of device class. I’ve updated all my sensors to include this. For anyone else having this problem, you also need to be aware that the sensors will not show together on the graph until the “Hours to Show” time has lapsed.