String formatting and max line length - Part 5 (#84501)
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
This commit is contained in:
parent
139dd22ce6
commit
f39f3b612a
59 changed files with 296 additions and 139 deletions
|
@ -184,7 +184,8 @@ class SensiboDeviceSwitch(SensiboDeviceBaseEntity, SwitchEntity):
|
|||
"""Make service call to api for setting Climate React."""
|
||||
if self.device_data.smart_type is None:
|
||||
raise HomeAssistantError(
|
||||
"Use Sensibo Enable Climate React Service once to enable switch or the Sensibo app"
|
||||
"Use Sensibo Enable Climate React Service once to enable switch or the"
|
||||
" Sensibo app"
|
||||
)
|
||||
new_state = bool(self.device_data.smart_on is False)
|
||||
data: dict[str, Any] = {"enabled": new_state}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue