diff --git a/custom_components/midea_ac_lan/binary_sensor.py b/custom_components/midea_ac_lan/binary_sensor.py index 881ba201..1070d9b7 100644 --- a/custom_components/midea_ac_lan/binary_sensor.py +++ b/custom_components/midea_ac_lan/binary_sensor.py @@ -1,15 +1,17 @@ from typing import cast + from homeassistant.components.binary_sensor import ( - BinarySensorEntity, BinarySensorDeviceClass, + BinarySensorEntity, ) -from homeassistant.const import CONF_DEVICE_ID, CONF_SENSORS, Platform from homeassistant.config_entries import ConfigEntry +from homeassistant.const import CONF_DEVICE_ID, CONF_SENSORS, Platform from homeassistant.core import HomeAssistant +from homeassistant.helpers.entity_platform import AddEntitiesCallback + from .const import DEVICES, DOMAIN from .midea_devices import MIDEA_DEVICES from .midea_entity import MideaEntity -from homeassistant.helpers.entity_platform import AddEntitiesCallback async def async_setup_entry(