From 70843862aa4b7e5508e6ba256fe65b6c5df93d00 Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Thu, 31 Aug 2023 07:31:05 +0200 Subject: [PATCH] Address late review for bsblan (#99360) * Address late review comment * Break also comment --- homeassistant/components/bsblan/coordinator.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/bsblan/coordinator.py b/homeassistant/components/bsblan/coordinator.py index 9344500a118..15eff37e6db 100644 --- a/homeassistant/components/bsblan/coordinator.py +++ b/homeassistant/components/bsblan/coordinator.py @@ -35,7 +35,8 @@ class BSBLanUpdateCoordinator(DataUpdateCoordinator[State]): LOGGER, name=f"{DOMAIN}_{config_entry.data[CONF_HOST]}", # use the default scan interval and add a random number of seconds to avoid timeouts when - # the BSB-Lan device is already/still busy retrieving data, e.g. for MQTT or internal logging. + # the BSB-Lan device is already/still busy retrieving data, + # e.g. for MQTT or internal logging. update_interval=SCAN_INTERVAL + timedelta(seconds=randint(1, 8)), ) @@ -50,5 +51,6 @@ class BSBLanUpdateCoordinator(DataUpdateCoordinator[State]): return await self.client.state() except BSBLANConnectionError as err: raise UpdateFailed( - f"Error while establishing connection with BSB-Lan device at {self.config_entry.data[CONF_HOST]}" + f"Error while establishing connection with " + f"BSB-Lan device at {self.config_entry.data[CONF_HOST]}" ) from err