Fix bug in Fitbit config flow, and switch to prefer display name (#103869)

This commit is contained in:
Allen Porter 2023-11-12 10:27:02 -08:00 committed by GitHub
parent 51b599e1f6
commit 96a19d61ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 96 additions and 14 deletions

View file

@ -69,7 +69,7 @@ class FitbitApi(ABC):
profile = response["user"]
self._profile = FitbitProfile(
encoded_id=profile["encodedId"],
full_name=profile["fullName"],
display_name=profile["displayName"],
locale=profile.get("locale"),
)
return self._profile