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:
code-review-doctor 2022-04-25 08:58:17 +01:00 committed by GitHub
parent 8eae572c93
commit 304426edb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 6 deletions

View file

@ -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)