h4 / LYWSD02-home-assistant

Home-Assistant sensor for LYWSD02 Thermometer
75 stars 12 forks source link

integration will stop working in version 2021.6 #19

Open robUx4 opened 3 years ago

robUx4 commented 3 years ago

Here is the log I get when I load it in 2021.5

2021-05-13 15:31:48 WARNING (MainThread) [homeassistant.loader] You are using a custom integration lywsd02_sensor which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2021-05-13 15:31:48 ERROR (MainThread) [homeassistant.loader] No 'version' key in the manifest file for custom integration 'lywsd02_sensor'. As of Home Assistant 2021.6, this integration will no longer be loaded. Please report this to the maintainer of 'lywsd02_sensor'

Also it seems the format of the documentation for the configuration doesn't work. It gives an error on the line - platform: template

robUx4 commented 3 years ago

The template for the sensor now looks like this

template:
  - sensor:
      - name: Temp Salon
        unit_of_measurement: "°C"
        state: "{{ state_attr('sensor.my_thermometer', 'temperature')|float }}"
        device_class: temperature
        unique_id: lywsd02.d109.temp
dredkin commented 1 year ago

Thank for the tip that really helped!