Update sensor.py

This commit is contained in:
t0urista 2024-10-31 10:07:54 +01:00 committed by GitHub
parent 68fc657cc5
commit 8ee5468083
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,26 +3,6 @@ import esphome.config_validation as cv
from esphome.components import sensor from esphome.components import sensor
from . import BTHome from . import BTHome
from esphome.const import * from esphome.const import *
"""
from esphome.const import (
CONF_ANGLE,
CONF_BATTERY_LEVEL,
CONF_ILLUMINANCE,
CONF_HUMIDITY,
CONF_TEMPERATURE,
DEVICE_CLASS_BATTERY,
DEVICE_CLASS_ILLUMINANCE,
DEVICE_CLASS_HUMIDITY,
DEVICE_CLASS_TEMPERATURE,
ENTITY_CATEGORY_DIAGNOSTIC,
STATE_CLASS_MEASUREMENT,
UNIT_DEGREES,
UNIT_LUX,
UNIT_PERCENT,
UNIT_CELSIUS,
CONF_ID,
)
"""
DEPENDENCIES = ["bthome"] DEPENDENCIES = ["bthome"]