Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
  • Loading branch information
jcgoette committed Dec 8, 2021
1 parent 97a0e0e commit b42dc0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/weight_gurus/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async def async_build_headers(self) -> dict:
}
return headers

async def async_get_token_and_save_account_dict(self) -> dict:
async def async_get_token_and_save_account_dict(self) -> str:
"""Get account access token and save account dict."""
# TODO: check self._token_expires_at before requesting new token (but this might not be a good idea if goalType, goalWeight, and initialWeight change frequently)
account_credentials = {CONF_EMAIL: self._email, CONF_PASSWORD: self._password}
Expand Down
2 changes: 1 addition & 1 deletion custom_components/weight_gurus/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
class WeightGurusEntityDescription(SensorEntityDescription):
"""WeightGurusEntityDescription."""

pretty_key: str = None
pretty_key: str = ""


SENSOR_TYPES: tuple[WeightGurusEntityDescription, ...] = (
Expand Down

0 comments on commit b42dc0f

Please sign in to comment.