Skip to content

Commit

Permalink
feat: Add logging for Nissan Carwings integration startup
Browse files Browse the repository at this point in the history
  • Loading branch information
remuslazar committed Jul 4, 2024
1 parent e219092 commit 648091d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/nissan_carwings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
DATA_CLIMATE_STATUS_KEY,
DATA_DRIVING_ANALYSIS_KEY,
DATA_TIMESTAMP_KEY,
LOGGER,
)

from .api import NissanCarwingsApiClient
Expand Down Expand Up @@ -73,6 +74,8 @@ async def async_setup_entry(
driving_analysis_coordinator=driving_analysis_coordinator,
)

LOGGER.info(f"Starting Nissan Carwings integration for user={entry.data[CONF_USERNAME]}")

# https://developers.home-assistant.io/docs/integration_fetching_data#coordinated-single-api-poll-for-data-for-all-entities
await coordinator.async_config_entry_first_refresh()

Expand Down

0 comments on commit 648091d

Please sign in to comment.