diff --git a/custom_components/bluetti_bt/__init__.py b/custom_components/bluetti_bt/__init__.py index 8ac7d49..99458b0 100644 --- a/custom_components/bluetti_bt/__init__.py +++ b/custom_components/bluetti_bt/__init__.py @@ -3,7 +3,6 @@ from __future__ import annotations import re -import logging from homeassistant.components import bluetooth from homeassistant.config_entries import ConfigEntry @@ -14,7 +13,6 @@ from homeassistant.exceptions import ConfigEntryNotReady from .const import DOMAIN, MANUFACTURER -_LOGGER = logging.getLogger(__name__) PLATFORMS: [Platform] = [Platform.SENSOR] diff --git a/custom_components/bluetti_bt/const.py b/custom_components/bluetti_bt/const.py index 5962e0c..7b8748e 100644 --- a/custom_components/bluetti_bt/const.py +++ b/custom_components/bluetti_bt/const.py @@ -3,6 +3,5 @@ DOMAIN = "bluetti_bt" MANUFACTURER = "Bluetti" -API_RESPONSE_BATTERY = "total_battery_percent" API_RESPONSE_BATTERY_RANGE_START = "battery_range_start" API_RESPONSE_BATTERY_RANGE_END = "battery_range_end" diff --git a/custom_components/bluetti_bt/sensor.py b/custom_components/bluetti_bt/sensor.py index 620ab74..1a6e746 100644 --- a/custom_components/bluetti_bt/sensor.py +++ b/custom_components/bluetti_bt/sensor.py @@ -39,7 +39,6 @@ from bluetti_mqtt.mqtt_client import NORMAL_DEVICE_FIELDS from . import device_info as dev_info, get_unique_id from .const import ( - API_RESPONSE_BATTERY, API_RESPONSE_BATTERY_RANGE_START, API_RESPONSE_BATTERY_RANGE_END, )