Update sensor.py

This commit is contained in:
t0urista 2024-10-30 17:31:29 +01:00 committed by GitHub
parent d6840ed1ff
commit 29bb3d1937
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,6 +1,9 @@
import esphome.codegen as cg
import esphome.config_validation as cv
from esphome.components import sensor
from . import BTHome
from esphome.const import *
"""
from esphome.const import (
CONF_ANGLE,
CONF_BATTERY_LEVEL,
@ -19,12 +22,10 @@ from esphome.const import (
UNIT_CELSIUS,
CONF_ID,
)
from . import BTHome
"""
DEPENDENCIES = ["bthome"]
CONFIG_SCHEMA = cv.Schema(
{
cv.GenerateID(): cv.use_id(BTHome),