Closed miljbee closed 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
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).
Our development documentation matches our development codebase. Your Home Assistant version is quite outdated from a developer's perspective 😉
../Frenck
Ok, sorry, thanks for the response.
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