Skip to content
Snippets Groups Projects
Unverified Commit 188f5de5 authored by Aaron Bach's avatar Aaron Bach Committed by GitHub
Browse files

Fixes an OpenUV bug with the scan interval (#16570)

parent 06af7640
No related branches found
No related tags found
No related merge requests found
......@@ -179,7 +179,7 @@ async def async_setup_entry(hass, config_entry):
hass.data[DOMAIN][DATA_OPENUV_LISTENER][
config_entry.entry_id] = async_track_time_interval(
hass, refresh_sensors,
hass.data[DOMAIN][CONF_SCAN_INTERVAL])
hass.data[DOMAIN].get(CONF_SCAN_INTERVAL, DEFAULT_SCAN_INTERVAL))
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment