jheling / freeathome

Free@Home component for Home Assistant
103 stars 37 forks source link

Prepare for temperature sensor breaking change in 2021.9.0 #107

Closed Tho85 closed 2 years ago

Tho85 commented 2 years ago

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 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.