Add wind_speed sensor device class (#3941)

This commit is contained in:
Franck Nijhof 2022-10-25 20:35:12 +02:00 committed by Jesse Hills
parent 0220934e4c
commit 01adece673
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A
2 changed files with 3 additions and 0 deletions

View file

@ -67,6 +67,7 @@ from esphome.const import (
DEVICE_CLASS_VOLTAGE, DEVICE_CLASS_VOLTAGE,
DEVICE_CLASS_VOLUME, DEVICE_CLASS_VOLUME,
DEVICE_CLASS_WATER, DEVICE_CLASS_WATER,
DEVICE_CLASS_WIND_SPEED,
DEVICE_CLASS_WEIGHT, DEVICE_CLASS_WEIGHT,
) )
from esphome.core import CORE, coroutine_with_priority from esphome.core import CORE, coroutine_with_priority
@ -114,6 +115,7 @@ DEVICE_CLASSES = [
DEVICE_CLASS_VOLTAGE, DEVICE_CLASS_VOLTAGE,
DEVICE_CLASS_VOLUME, DEVICE_CLASS_VOLUME,
DEVICE_CLASS_WATER, DEVICE_CLASS_WATER,
DEVICE_CLASS_WIND_SPEED,
DEVICE_CLASS_WEIGHT, DEVICE_CLASS_WEIGHT,
] ]

View file

@ -959,6 +959,7 @@ DEVICE_CLASS_VOLATILE_ORGANIC_COMPOUNDS = "volatile_organic_compounds"
DEVICE_CLASS_VOLTAGE = "voltage" DEVICE_CLASS_VOLTAGE = "voltage"
DEVICE_CLASS_VOLUME = "volume" DEVICE_CLASS_VOLUME = "volume"
DEVICE_CLASS_WATER = "water" DEVICE_CLASS_WATER = "water"
DEVICE_CLASS_WIND_SPEED = "wind_speed"
DEVICE_CLASS_WEIGHT = "weight" DEVICE_CLASS_WEIGHT = "weight"
# device classes of both binary_sensor and button component # device classes of both binary_sensor and button component
DEVICE_CLASS_UPDATE = "update" DEVICE_CLASS_UPDATE = "update"