MQTT device trackers disappearing after restart

Hi, I’ve setup device trackers through mqtt a couple of months ago and never had a problem. But since HA Core 2024.3 (i think) they’ve always been removed after every restart.

Manually reloading the MQTT configuration makes them appear again, but each person need to be re-assigned the device tracker.

Never changed the configuration since i first set it up.
This is my configuration:

device_tracker:
  - name: "Home"
    unique_id: "name_home"
    object_id: "name_home"
    state_topic: "home/name"
    payload_home: "1"
    payload_not_home: "0"
    device:
      identifiers: "iPhoneXX"
      manufacturer: "Apple"
      model: "iPhone XX"
      name: "Name iPhone"

Anyone else having problems with device trackers since this update? Or is there something wrong with my configuration?

I found the problem myself. I had a sensor for the current power price defined just above my device trackers. For this sensor I’ve defined both device_class and state_class like this:

device_class: "monetary"
state_class: "measurement"

Which apparently is not acceptable. Removing the state_class from this configuration resolved the issue.