Enable Ruff FLY002 rule (#115112)
Co-authored-by: J. Nick Koston <nick@koston.org> Co-authored-by: Jan Bouwhuis <jbouwh@users.noreply.github.com>
This commit is contained in:
parent
35d3f2b29b
commit
9bf87329da
41 changed files with 474 additions and 659 deletions
|
@ -34,14 +34,8 @@ class WithingsFlowHandler(
|
|||
def extra_authorize_data(self) -> dict[str, str]:
|
||||
"""Extra data that needs to be appended to the authorize url."""
|
||||
return {
|
||||
"scope": ",".join(
|
||||
[
|
||||
AuthScope.USER_INFO,
|
||||
AuthScope.USER_METRICS,
|
||||
AuthScope.USER_ACTIVITY,
|
||||
AuthScope.USER_SLEEP_EVENTS,
|
||||
]
|
||||
)
|
||||
"scope": f"{AuthScope.USER_INFO},{AuthScope.USER_METRICS},"
|
||||
f"{AuthScope.USER_ACTIVITY},{AuthScope.USER_SLEEP_EVENTS}"
|
||||
}
|
||||
|
||||
async def async_step_reauth(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue