Skip to content

Commit

Permalink
Add: More debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
JurajNyiri committed Apr 22, 2021
1 parent a2ffad5 commit be7b74b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom_components/tapo_control/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry):
)

async def async_update_data():
LOGGER.debug("async_update_data - entry")
host = entry.data.get(CONF_IP_ADDRESS)
username = entry.data.get(CONF_USERNAME)
password = entry.data.get(CONF_PASSWORD)
Expand All @@ -133,6 +134,7 @@ async def async_update_data():

# motion detection retries
if motionSensor or enableTimeSync:
LOGGER.debug("Motion sensor or time sync is enabled.")
if (
not hass.data[DOMAIN][entry.entry_id]["eventsDevice"]
or not hass.data[DOMAIN][entry.entry_id]["onvifManagement"]
Expand Down

0 comments on commit be7b74b

Please sign in to comment.