if username is None or password is None:
_LOGGER.error("Must specify a username and password")
return False
try:
_LOGGER.info("Logging into iCloud Account")
// Attempt the login to iCloud
After Change
except PyiCloudNoDevicesException:
_LOGGER.info("No iCloud Devices found!")
hass.bus.listen_once(EVENT_HOMEASSISTANT_START, update_icloud)
update_minutes = list(range(0, 60, config[CONF_INTERVAL]))
// Schedule keepalives between the updates
keepalive_minutes = list(x for x in range(0, 60, KEEPALIVE_INTERVAL)