Temperatures are shown in both 'ºF' and 'ºC' in history graph but calculated at 'ºF'? (it Fixed it self)

I’m working on a Esphome project that monitors my hydronic boiler temperatures and adjusts the high limit of the boiler. ( Show your most scary home made automation device )

It works well with the exception that HA displays the sensors from the device in both C and F however it calculates the reading as F.

Examples:

Displayed as:
graph
And a graph card is shown with only ‘ºF’:

The module config is:

esphome:
  name: stepper_test
  platform: ESP8266
  board: d1_mini_lite

wifi:
  ssid: "#"
  password: "#"


# Enable logging
logger:

# Enable Home Assistant API
api:
  services:
    - service: control_stepper
      variables:
        target: int
      then:
        - stepper.set_target:
            id: my_stepper
            target: !lambda 'return target;'

ota:
  password: "#"


stepper:
  - platform: uln2003
    id: my_stepper
    pin_a: D5
    pin_b: D1
    pin_c: D2
    pin_d: D3
    max_speed: 200 steps/s
    step_mode: WAVE_DRIVE #HALF_STEP,WAVE_DRIVE,FULL_STEP
    sleep_when_done: true


    # Optional:
    acceleration: inf
    deceleration: inf
    
dallas:
  - pin: D6
    update_interval: 10s    
sensor:
  - platform: dallas
    address: 0xB30069E200001928
    name: "Stepper box temp"

  - platform: dallas
    address: 0xDD01142FDF00C728
    name: "Temperature East outside"

    
  - platform: dallas
    address: 0xE00316554741FF28
    name: "Boiler in temperature near"

    
  - platform: dallas
    address: 0x7B04165130D5FF28
    name: "Boiler out temperature near"

    
  - platform: dallas
    address: 0x5E02131A7D65AA28
    name: "Boiler out temperature far"

    
  - platform: dallas
    address: 0x4902131A6393AA28
    name: "Boiler in temperature far"

I think I maybe could make a template sensor to fix the display to only show ‘ºF’. But why is HA displaying both ‘ºF’ and ‘ºC’ , but calculates the values as ‘ºF’. even though the device sends out values in ‘ºC’ ?

Example:

INFO Reading configuration /config/esphome/stepper_test.yaml...
INFO Starting log output from stepper_test.local using esphome API
INFO Connecting to stepper_test.local:6053 (192.168.0.55)
INFO Successfully connected to stepper_test.local
[19:21:00][I][app:100]: ESPHome version 1.14.3 compiled on Dec 29 2019, 17:21:30
[19:21:00][C][wifi:415]: WiFi:
[19:21:00][C][wifi:283]:   SSID: [redacted]
[19:21:00][C][wifi:284]:   IP Address: 192.168.0.55
[19:21:00][C][wifi:286]:   BSSID: [redacted]
[19:21:00][C][wifi:287]:   Hostname: 'stepper_test'
[19:21:00][C][wifi:291]:   Signal strength: -72 dB ▂▄▆█
[19:21:00][C][wifi:295]:   Channel: 11
[19:21:00][C][wifi:296]:   Subnet: 255.255.255.0
[19:21:00][C][wifi:297]:   Gateway: 192.168.0.1
[19:21:00][C][wifi:298]:   DNS1: 192.168.0.1
[19:21:00][C][wifi:299]:   DNS2: (IP unset)
[19:21:00][C][uln2003.stepper:039]: ULN2003:
[19:21:00][C][uln2003.stepper:040]:   Pin A: GPIO14 (Mode: OUTPUT)
[19:21:00][C][uln2003.stepper:041]:   Pin B: GPIO5 (Mode: OUTPUT)
[19:21:00][C][uln2003.stepper:042]:   Pin C: GPIO4 (Mode: OUTPUT)
[19:21:00][C][uln2003.stepper:043]:   Pin D: GPIO0 (Mode: OUTPUT)
[19:21:00][C][uln2003.stepper:044]:   Sleep when done: YES
[19:21:00][C][uln2003.stepper:057]:   Step Mode: WAVE DRIVE
[19:21:00][C][logger:175]: Logger:
[19:21:00][C][logger:176]:   Level: DEBUG
[19:21:00][C][logger:177]:   Log Baud Rate: 115200
[19:21:00][C][logger:178]:   Hardware UART: UART0
[19:21:00][C][dallas.sensor:070]: DallasComponent:
[19:21:00][C][dallas.sensor:071]:   Pin: GPIO12 (Mode: INPUT)
[19:21:00][C][dallas.sensor:072]:   Update Interval: 10.0s
[19:21:00][D][dallas.sensor:077]:   Found sensors:
[19:21:00][D][dallas.sensor:080]:     0x5E02131A7D65AA28
[19:21:00][D][dallas.sensor:080]:     0x4902131A6393AA28
[19:21:00][D][dallas.sensor:080]:     0xB30069E200001928
[19:21:00][D][dallas.sensor:080]:     0xDD01142FDF00C728
[19:21:00][D][dallas.sensor:080]:     0xE00316554741FF28
[19:21:00][D][dallas.sensor:080]:     0x7B04165130D5FF28
[19:21:00][C][dallas.sensor:085]:   Device 'Stepper box temp'
[19:21:00][C][dallas.sensor:085]:     Unit of Measurement: '°C'
[19:21:00][C][dallas.sensor:085]:     Accuracy Decimals: 1
[19:21:00][C][dallas.sensor:085]:     Icon: 'mdi:thermometer'
[19:21:00][C][dallas.sensor:093]:     Address: 0xB30069E200001928
[19:21:00][C][dallas.sensor:094]:     Resolution: 12
[19:21:00][C][dallas.sensor:085]:   Device 'Temperature East outside'
[19:21:00][C][dallas.sensor:085]:     Unit of Measurement: '°C'
[19:21:00][C][dallas.sensor:085]:     Accuracy Decimals: 1
[19:21:00][C][dallas.sensor:085]:     Icon: 'mdi:thermometer'
[19:21:00][C][dallas.sensor:093]:     Address: 0xDD01142FDF00C728
[19:21:00][C][dallas.sensor:094]:     Resolution: 12
[19:21:00][C][dallas.sensor:085]:   Device 'Boiler in temperature near'
[19:21:00][C][dallas.sensor:085]:     Unit of Measurement: '°C'
[19:21:00][C][dallas.sensor:085]:     Accuracy Decimals: 1
[19:21:00][C][dallas.sensor:085]:     Icon: 'mdi:thermometer'
[19:21:00][C][dallas.sensor:093]:     Address: 0xE00316554741FF28
[19:21:00][C][dallas.sensor:094]:     Resolution: 12
[19:21:00][C][dallas.sensor:085]:   Device 'Boiler out temperature near'
[19:21:00][C][dallas.sensor:085]:     Unit of Measurement: '°C'
[19:21:00][C][dallas.sensor:085]:     Accuracy Decimals: 1
[19:21:00][C][dallas.sensor:085]:     Icon: 'mdi:thermometer'
[19:21:00][C][dallas.sensor:093]:     Address: 0x7B04165130D5FF28
[19:21:00][C][dallas.sensor:094]:     Resolution: 12
[19:21:00][C][dallas.sensor:085]:   Device 'Boiler out temperature far'
[19:21:00][C][dallas.sensor:085]:     Unit of Measurement: '°C'
[19:21:00][C][dallas.sensor:085]:     Accuracy Decimals: 1
[19:21:00][C][dallas.sensor:085]:     Icon: 'mdi:thermometer'
[19:21:00][C][dallas.sensor:093]:     Address: 0x5E02131A7D65AA28
[19:21:00][C][dallas.sensor:094]:     Resolution: 12
[19:21:00][C][dallas.sensor:085]:   Device 'Boiler in temperature far'
[19:21:00](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[19:21:00][C][dallas.sensor:085]:     Accuracy Decimals: 1
[19:21:00][C][dallas.sensor:085]:     Icon: 'mdi:thermometer'
[19:21:00][C][dallas.sensor:093]:     Address: 0x4902131A6393AA28
[19:21:00][C][dallas.sensor:094]:     Resolution: 12
[19:21:00][C][ota:029]: Over-The-Air Updates:
[19:21:00][C][ota:030]:   Address: stepper_test.local:8266
[19:21:00][C][ota:032]:   Using Password.
[19:21:00][C][api:095]: API Server:
[19:21:00][C][api:096]:   Address: stepper_test.local:6053
[19:21:10][D][dallas.sensor:148]: 'Stepper box temp': Got Temperature=47.3°C
[19:21:10][D][sensor:092]: 'Stepper box temp': Sending state 47.31250 °C with 1 decimals of accuracy
[19:21:10][D][dallas.sensor:148]: 'Boiler in temperature near': Got Temperature=65.1°C
[19:21:10][D][sensor:092]: 'Boiler in temperature near': Sending state 65.12500 °C with 1 decimals of accuracy
[19:21:10][D][dallas.sensor:148]: 'Boiler in temperature far': Got Temperature=54.5°C
[19:21:10][D][sensor:092]: 'Boiler in temperature far': Sending state 54.50000 °C with 1 decimals of accuracy
[19:21:10][D][dallas.sensor:148]: 'Temperature East outside': Got Temperature=2.0°C
[19:21:10][D][sensor:092]: 'Temperature East outside': Sending state 2.00000 °C with 1 decimals of accuracy
[19:21:10][D][dallas.sensor:148]: 'Boiler out temperature near': Got Temperature=77.8°C
[19:21:10][D][sensor:092]: 'Boiler out temperature near': Sending state 77.75000 °C with 1 decimals of accuracy
[19:21:10](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)
[19:21:10](Message skipped because it was too big to fit in TCP buffer - This is only cosmetic)

Many Thanks.

Hmmm. It’s seems to have sorted it self out.

Now it shows the graphs properly.