Show a warning when no Withings data found (#103066)
This commit is contained in:
parent
0f72495a7d
commit
7319abcab0
2 changed files with 24 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue