Skip to content

Commit

Permalink
Catch optional email
Browse files Browse the repository at this point in the history
  • Loading branch information
tjorim committed Feb 8, 2023
1 parent 6439719 commit 53561b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/tgtg/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def setup_platform(
) -> None:
"""Set up the sensor platform."""

email = config[CONF_EMAIL]
email = config.get(CONF_EMAIL)
item = config[CONF_ITEM]
access_token = config[CONF_ACCESS_TOKEN]
refresh_token = config[CONF_REFRESH_TOKEN]
Expand Down

0 comments on commit 53561b4

Please sign in to comment.