Show a warning when no Withings data found (#103066)

This commit is contained in:
Joost Lekkerkerker 2023-10-30 19:40:27 +01:00 committed by GitHub
parent 0f72495a7d
commit 7319abcab0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

View file

@ -40,6 +40,7 @@ from homeassistant.util import dt as dt_util
from . import WithingsData
from .const import (
DOMAIN,
LOGGER,
SCORE_POINTS,
UOM_BEATS_PER_MINUTE,
UOM_BREATHS_PER_MINUTE,
@ -787,6 +788,11 @@ async def async_setup_entry(
_async_add_workout_entities
)
if not entities:
LOGGER.warning(
"No data found for Withings entry %s, sensors will be added when new data is available"
)
async_add_entities(entities)