From 4b51ea514f2dd62389c78734654d953e873be308 Mon Sep 17 00:00:00 2001 From: patman15 <14628713+patman15@users.noreply.github.com> Date: Mon, 30 Dec 2024 17:24:14 +0100 Subject: [PATCH] fix ruff --- custom_components/hunterdouglas_powerview_ble/button.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/custom_components/hunterdouglas_powerview_ble/button.py b/custom_components/hunterdouglas_powerview_ble/button.py index 9c1796c..bf7649b 100644 --- a/custom_components/hunterdouglas_powerview_ble/button.py +++ b/custom_components/hunterdouglas_powerview_ble/button.py @@ -1,8 +1,7 @@ """Hunter Douglas Powerview cover.""" -from typing import Any, Final +from typing import Final -from bleak.exc import BleakError from homeassistant.components.bluetooth.passive_update_coordinator import ( PassiveBluetoothCoordinatorEntity, ) @@ -17,8 +16,7 @@ from homeassistant.core import HomeAssistant from homeassistant.helpers.device_registry import DeviceInfo, format_mac from homeassistant.helpers.entity_platform import AddEntitiesCallback -from .api import CLOSED_POSITION, OPEN_POSITION -from .const import DOMAIN, HOME_KEY, LOGGER +from .const import DOMAIN, LOGGER from .coordinator import PVCoordinator BUTTONS_SHADE: Final = [ @@ -69,4 +67,5 @@ class PowerViewButton(PassiveBluetoothCoordinatorEntity[PVCoordinator], ButtonEn async def async_press(self) -> None: """Handle the button press.""" + LOGGER.debug("identify cover") await self._coord.api.identify()