[device_class] is an invalid option for [sensor.scrape]

Hi,

I upgraded hass to 0.95.1 and I have some errors

[device_class] is an invalid option for [sensor.scrape]

The lines refer to

- platform: scrape
    resource: http://192.168.0.3/details.xml
    name: Température Pac
    select: 'PrimaryValue'
    index: 1
    device_class: temperature
    unit_of_measurement: "°C"
    value_template: "{{ value.split(' ')[0] | round(2) }}"

I don’t know why …

If you read the doc you will see that device_class is not a valid option:
https://www.home-assistant.io/components/scrape/
Remove it and add it to the sensor in customize.yaml

1 Like

Oh yes … sorry