Fix issue probably-meant-fstring found at https://codereview.doctor (#70574)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
parent
8eae572c93
commit
304426edb1
5 changed files with 6 additions and 6 deletions
|
@ -81,7 +81,7 @@ class ConnectXiaomiGateway:
|
|||
raise AuthException(error) from error
|
||||
|
||||
raise SetupException(
|
||||
"DeviceException during setup of xiaomi gateway with host {self._host}"
|
||||
f"DeviceException during setup of xiaomi gateway with host {self._host}"
|
||||
) from error
|
||||
|
||||
# get the connected sub devices
|
||||
|
@ -115,7 +115,7 @@ class ConnectXiaomiGateway:
|
|||
if not miio_cloud.login():
|
||||
raise SetupException(
|
||||
"Failed to login to Xiaomi Miio Cloud during setup of Xiaomi"
|
||||
" gateway with host {self._host}",
|
||||
f" gateway with host {self._host}",
|
||||
)
|
||||
devices_raw = miio_cloud.get_devices(self._cloud_country)
|
||||
self._gateway_device.get_devices_from_dict(devices_raw)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue