String formatting and max line length - Part 1 (#84390)

Co-authored-by: Erik Montnemery <erik@montnemery.com>
This commit is contained in:
Franck Nijhof 2022-12-22 10:12:50 +01:00 committed by GitHub
parent 41341c76cf
commit b0cee0bc46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
98 changed files with 532 additions and 237 deletions

View file

@ -400,7 +400,10 @@ class AugustData(AugustSubscriberMixin):
if self._device_detail_by_id.get(device_id):
continue
_LOGGER.info(
"The doorbell %s could not be setup because the system could not fetch details about the doorbell",
(
"The doorbell %s could not be setup because the system could not"
" fetch details about the doorbell"
),
doorbell.device_name,
)
del self._doorbells_by_id[device_id]
@ -414,12 +417,18 @@ class AugustData(AugustSubscriberMixin):
lock_detail = self._device_detail_by_id.get(device_id)
if lock_detail is None:
_LOGGER.info(
"The lock %s could not be setup because the system could not fetch details about the lock",
(
"The lock %s could not be setup because the system could not"
" fetch details about the lock"
),
lock.device_name,
)
elif lock_detail.bridge is None:
_LOGGER.info(
"The lock %s could not be setup because it does not have a bridge (Connect)",
(
"The lock %s could not be setup because it does not have a"
" bridge (Connect)"
),
lock.device_name,
)
del self._device_detail_by_id[device_id]