Core update and MQTT device registration

Hello all,

I noticed strange behavior. I have esphome mqtt device sending sensor data over internet. After I upgraded core (from 4.5 to 6.3), the device sensors show as unavailable. I tested on other mqtt device, that I need to restart the device in order to re-initialize sensors in HA. Then they are properly shown again.

I think this is not correct behaviour. It should not be needed to restart sensor devices after HA core update. What about sensors that are hundreds of kilometers away? The reset switch does not work over mqtt and I believe that sensor sending data should not be depending on HA updates.