Skip to content

Commit

Permalink
feat: Add more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
jcgoette committed Jan 6, 2023
1 parent e764677 commit c046c7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions custom_components/babybuddy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ class BabyBuddyCoordinator(DataUpdateCoordinator):

def __init__(self, hass: HomeAssistant, config_entry: ConfigEntry) -> None:
"""Initialize the BabyBuddyData object."""
_LOGGER.debug("Initializing BabyBuddyCoordinator")
super().__init__(
hass,
_LOGGER,
Expand Down
1 change: 1 addition & 0 deletions custom_components/babybuddy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ def __init__(
self, host: str, port: int, path: str, api_key: str, session: ClientSession
) -> None:
"""Initialize the client."""
_LOGGER.debug("Initializing BabyBuddyClient")
self.headers = {"Authorization": f"Token {api_key}"}
_LOGGER.debug(
f"Client API Token, obfuscated: {api_key[:4]}{'.' * (len(api_key)-8)}{api_key[-4:]}"
Expand Down

0 comments on commit c046c7a

Please sign in to comment.