@@ -158,14 +158,19 @@ async def half_lock(self) -> bool:
158158 )
159159
160160 async def get_quick_key (self ) -> dict [str , Any ] | None :
161- """Return the Quick Key settings (Lock Ultra only).
161+ """
162+ Return the Quick Key settings (Lock Ultra only).
162163
163164 Returns
165+ -------
164166 ``{"enabled": bool, "double_press": bool, "function": QuickKeyFunction}``,
165167 or ``None`` if it can't be read.
168+
166169 """
167170 if self ._model not in COMMAND_GET_QUICK_KEY :
168- raise SwitchbotOperationError (f"Quick Key is not supported on { self ._model } " )
171+ raise SwitchbotOperationError (
172+ f"Quick Key is not supported on { self ._model } "
173+ )
169174 result = await self ._send_command (
170175 key = COMMAND_GET_QUICK_KEY [self ._model ], retry = self ._retry_count
171176 )
@@ -193,14 +198,17 @@ async def set_quick_key(
193198 double_press : bool | None = None ,
194199 function : QuickKeyFunction | None = None ,
195200 ) -> bool :
196- """Update one or more Quick Key settings (Lock Ultra only).
201+ """
202+ Update one or more Quick Key settings (Lock Ultra only).
197203
198204 Only the fields you pass are changed (a masked write); the others keep their
199205 current value. Returns ``True`` if the lock acknowledges with the requested
200206 bits set.
201207 """
202208 if self ._model not in COMMAND_SET_QUICK_KEY_PREFIX :
203- raise SwitchbotOperationError (f"Quick Key is not supported on { self ._model } " )
209+ raise SwitchbotOperationError (
210+ f"Quick Key is not supported on { self ._model } "
211+ )
204212 mask = 0
205213 value = 0
206214 if enabled is not None :
0 commit comments