fix https://github.com/home-assistant/core/issues/85142 fixes undefined
sensor_device_info_to_device_info