File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
custom_components/cometblue Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 11"""Comet Blue Bluetooth integration."""
22from __future__ import annotations
33
4- from datetime import datetime
54import logging
5+ from datetime import datetime
66from uuid import UUID
77
8- from bleak import BleakError
9- import cometblue
8+ import homeassistant .helpers .config_validation as cv
109import voluptuous as vol
11-
10+ from bleak import BleakError
1211from homeassistant .components import bluetooth
1312from homeassistant .config_entries import ConfigEntry
1413from homeassistant .const import CONF_ADDRESS , CONF_PIN , Platform
1918 SupportsResponse ,
2019)
2120from homeassistant .exceptions import ConfigEntryNotReady
22- import homeassistant .helpers .config_validation as cv
2321from homeassistant .helpers .device_registry import DeviceInfo
2422
23+ import cometblue
24+
2525from .const import CONF_ALL_DAYS , CONF_DEVICE_NAME , DOMAIN
2626from .coordinator import CometBlueDataUpdateCoordinator
2727from .utils import (
@@ -53,7 +53,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
5353 )
5454
5555 cometblue_device = cometblue .AsyncCometBlue (
56- device = ble_device , pin = entry .data .get (CONF_PIN ), timeout = TIMEOUT
56+ device = ble_device , pin = entry .data .get (CONF_PIN ), timeout = TIMEOUT , retries = 1
5757 )
5858 try :
5959 async with cometblue_device :
You can’t perform that action at this time.
0 commit comments