Skip to content

Commit 2c12af8

Browse files
Adjust code style
1 parent 0c4cb3a commit 2c12af8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

custom_components/xiaomi_cloud_map_extractor/image.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
_LOGGER = logging.getLogger(__name__)
1414
KEY = "live_map"
1515

16+
1617
async def async_setup_entry(
1718
hass: HomeAssistant,
1819
config_entry: XiaomiCloudMapExtractorConfigEntry,

custom_components/xiaomi_cloud_map_extractor/legacy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,8 @@ async def create_config_entry_data_from_yaml(
409409
mac = format_mac(device.mac)
410410
name = device.name
411411
server = device.server
412-
except BaseException:
413-
_LOGGER.error("Failed to connect to Xiaomi Cloud")
412+
except BaseException as e:
413+
_LOGGER.error("Failed to connect to Xiaomi Cloud", exc_info=e)
414414

415415
data = {
416416
CONF_HOST: import_info[CONF_HOST],

0 commit comments

Comments
 (0)