home-assistant / developers.home-assistant

Developers website for Home Assistant.
https://developers.home-assistant.io
Other
294 stars 929 forks source link

device_class wind_speed bug or error in documentation #1546

Closed miljbee closed 1 year ago

miljbee commented 1 year ago

Hello,

in this doc : https://developers.home-assistant.io/docs/core/entity/sensor/#available-state-classes device_class contains wind_speed

when setting a template sensor with wind_speed, I get an error on my logs:

Invalid config for [template]: expected SensorDeviceClass or one of 'apparent_power', 'aqi', 'battery', 'carbon_monoxide', 'carbon_dioxide', 'current', 'date', 'distance', 'duration', 'energy', 'frequency', 'gas', 'humidity', 'illuminance', 'moisture', 'monetary', 'nitrogen_dioxide', 'nitrogen_monoxide', 'nitrous_oxide', 'ozone', 'pm1', 'pm10', 'pm25', 'power_factor', 'power', 'pressure', 'reactive_power', 'signal_strength', 'speed', 'sulphur_dioxide', 'temperature', 'timestamp', 'volatile_organic_compounds', 'voltage', 'volume', 'weight'** for dictionary value @ data['sensor'][0]['device_class']. Got 'wind_speed'. (See /config/packages/weather/weather.yaml, line 1). Home Assistant 2022.10.5 Supervisor 2022.11.2 Operating System 9.3 Interface utilisateur : 20221010.0 - latest

frenck commented 1 year ago

Our development documentation matches our development codebase. Your Home Assistant version is quite outdated from a developer's perspective 😉

../Frenck

miljbee commented 1 year ago

Ok, sorry, thanks for the response.