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
|
@ -144,7 +144,8 @@ class SwitchBeeCoverEntity(SwitchBeeDeviceEntity[SwitchBeeShutter], CoverEntity)
|
|||
await self.coordinator.api.set_state(self._device.id, kwargs[ATTR_POSITION])
|
||||
except (SwitchBeeError, SwitchBeeTokenError) as exp:
|
||||
raise HomeAssistantError(
|
||||
f"Failed to set {self.name} position to {kwargs[ATTR_POSITION]}, error: {str(exp)}"
|
||||
f"Failed to set {self.name} position to {kwargs[ATTR_POSITION]}, error:"
|
||||
f" {str(exp)}"
|
||||
) from exp
|
||||
|
||||
self._get_coordinator_device().position = kwargs[ATTR_POSITION]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue