Nest - Climate shorten line to be less than 88 chars (#86989)

Lines to be less than 88
This commit is contained in:
PeteRager 2023-01-30 22:14:24 -05:00 committed by GitHub
parent 53638ba138
commit e706696271
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -305,7 +305,8 @@ class ThermostatEntity(ClimateEntity):
temp = kwargs.get(ATTR_TEMPERATURE)
if ThermostatTemperatureSetpointTrait.NAME not in self._device.traits:
raise HomeAssistantError(
f"Error setting {self.entity_id} temperature to {kwargs}: Unable to find setpoint trait."
f"Error setting {self.entity_id} temperature to {kwargs}: "
"Unable to find setpoint trait."
)
trait = self._device.traits[ThermostatTemperatureSetpointTrait.NAME]
try: