Skip to content

Commit

Permalink
Fix Nextcloud sensors becoming unavailable (#40212)
Browse files Browse the repository at this point in the history
  • Loading branch information
meichthys authored and balloob committed Sep 18, 2020
1 parent 0383030 commit 33b56b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion homeassistant/components/nextcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ def setup(hass, config):
_LOGGER.error("Nextcloud setup failed - Check configuration")

hass.data[DOMAIN] = get_data_points(ncm.data)
hass.data[DOMAIN]["instance"] = conf[CONF_URL]

def nextcloud_update(event_time):
"""Update data from nextcloud api."""
Expand All @@ -111,6 +110,7 @@ def nextcloud_update(event_time):
return False

hass.data[DOMAIN] = get_data_points(ncm.data)
hass.data[DOMAIN]["instance"] = conf[CONF_URL]

# Update sensors on time interval
track_time_interval(hass, nextcloud_update, conf[CONF_SCAN_INTERVAL])
Expand Down

0 comments on commit 33b56b0

Please sign in to comment.