String formatting and max line length - Part 2 (#84393)

This commit is contained in:
Franck Nijhof 2022-12-22 11:38:59 +01:00 committed by GitHub
parent 7e682af472
commit cb13418bab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
69 changed files with 431 additions and 174 deletions

View file

@ -187,8 +187,11 @@ class HomeKitHeaterCoolerEntity(HomeKitBaseClimateEntity):
else:
hvac_mode = TARGET_HEATER_COOLER_STATE_HOMEKIT_TO_HASS.get(state)
_LOGGER.warning(
"HomeKit device %s: Setting temperature in %s mode is not supported yet;"
" Consider raising a ticket if you have this device and want to help us implement this feature",
(
"HomeKit device %s: Setting temperature in %s mode is not supported"
" yet; Consider raising a ticket if you have this device and want"
" to help us implement this feature"
),
self.entity_id,
hvac_mode,
)
@ -202,8 +205,11 @@ class HomeKitHeaterCoolerEntity(HomeKitBaseClimateEntity):
return
if hvac_mode not in {HVACMode.HEAT, HVACMode.COOL}:
_LOGGER.warning(
"HomeKit device %s: Setting temperature in %s mode is not supported yet;"
" Consider raising a ticket if you have this device and want to help us implement this feature",
(
"HomeKit device %s: Setting temperature in %s mode is not supported"
" yet; Consider raising a ticket if you have this device and want"
" to help us implement this feature"
),
self.entity_id,
hvac_mode,
)