mirror of
https://github.com/esphome/esphome.git
synced 2024-11-27 17:27:59 +01:00
Update sensor.py
This commit is contained in:
parent
d6840ed1ff
commit
29bb3d1937
1 changed files with 4 additions and 3 deletions
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue