TL;DR: Temperature sensors may no longer implement a state and unit_of_measurement property, but should provide a native_value and native_unit_of_measurement property instead.
This PR prepares for this change, but it may make this component incompatible with HA versions before 2021.9.0, w.r.t. temperature sensors.
There is a breaking change announced for the upcoming Home Assistant release 2021.9.0. Details are here: https://developers.home-assistant.io/blog/2021/08/12/sensor_temperature_conversion/
TL;DR: Temperature sensors may no longer implement a
state
andunit_of_measurement
property, but should provide anative_value
andnative_unit_of_measurement
property instead.This PR prepares for this change, but it may make this component incompatible with HA versions before 2021.9.0, w.r.t. temperature sensors.