From 04a2f1720aa933852b64d40db518774b4d08a0df Mon Sep 17 00:00:00 2001 From: t0urista Date: Thu, 31 Oct 2024 10:08:29 +0100 Subject: [PATCH] Update binary_sensor.py --- esphome/components/bthome/binary_sensor.py | 62 +--------------------- 1 file changed, 1 insertion(+), 61 deletions(-) diff --git a/esphome/components/bthome/binary_sensor.py b/esphome/components/bthome/binary_sensor.py index be9381a79a..bb7dcf182f 100644 --- a/esphome/components/bthome/binary_sensor.py +++ b/esphome/components/bthome/binary_sensor.py @@ -4,67 +4,7 @@ from esphome.components import binary_sensor from esphome.components import sensor from esphome.components import event - -from esphome.const import ( - # non-binary - DEVICE_CLASS_EMPTY, - DEVICE_CLASS_AQI, - DEVICE_CLASS_BATTERY, - DEVICE_CLASS_CARBON_DIOXIDE, - DEVICE_CLASS_CARBON_MONOXIDE, - DEVICE_CLASS_CURRENT, - DEVICE_CLASS_ENERGY, - DEVICE_CLASS_GAS, - DEVICE_CLASS_HUMIDITY, - DEVICE_CLASS_ILLUMINANCE, - DEVICE_CLASS_MONETARY, - DEVICE_CLASS_NITROGEN_DIOXIDE, - DEVICE_CLASS_NITROGEN_MONOXIDE, - DEVICE_CLASS_NITROUS_OXIDE, - DEVICE_CLASS_OZONE, - DEVICE_CLASS_PM1, - DEVICE_CLASS_PM10, - DEVICE_CLASS_PM25, - DEVICE_CLASS_POWER, - DEVICE_CLASS_POWER_FACTOR, - DEVICE_CLASS_PRESSURE, - DEVICE_CLASS_SIGNAL_STRENGTH, - DEVICE_CLASS_SULPHUR_DIOXIDE, - DEVICE_CLASS_TEMPERATURE, - DEVICE_CLASS_TIMESTAMP, - DEVICE_CLASS_VOLATILE_ORGANIC_COMPOUNDS, - DEVICE_CLASS_VOLTAGE, - # binary - DEVICE_CLASS_EMPTY, - DEVICE_CLASS_BATTERY, - DEVICE_CLASS_GAS, - DEVICE_CLASS_POWER, - DEVICE_CLASS_BATTERY_CHARGING, - DEVICE_CLASS_COLD, - DEVICE_CLASS_CONNECTIVITY, - DEVICE_CLASS_DOOR, - DEVICE_CLASS_GARAGE_DOOR, - DEVICE_CLASS_HEAT, - DEVICE_CLASS_LIGHT, - DEVICE_CLASS_LOCK, - DEVICE_CLASS_MOISTURE, - DEVICE_CLASS_MOTION, - DEVICE_CLASS_MOVING, - DEVICE_CLASS_OCCUPANCY, - DEVICE_CLASS_OPENING, - DEVICE_CLASS_PLUG, - DEVICE_CLASS_PRESENCE, - DEVICE_CLASS_PROBLEM, - DEVICE_CLASS_RUNNING, - DEVICE_CLASS_SAFETY, - DEVICE_CLASS_SMOKE, - DEVICE_CLASS_SOUND, - DEVICE_CLASS_TAMPER, - DEVICE_CLASS_VIBRATION, - DEVICE_CLASS_WINDOW, - DEVICE_CLASS_UPDATE, - CONF_ID, -) +from esphome.const import * from . import BTHome