jaroschek / home-assistant-myuplink

Custom Home Assistant integration for devices and sensors in myUplink account.
39 stars 8 forks source link

Add configurable scan interval #81

Closed jaroschek closed 4 months ago

jaroschek commented 4 months ago

As observed the parameter values are only updated every 5 minutes (300 seconds). This should be the (new) default update interval for the DataUpdateCoordinator fetching all the updates from the myUplink API.

But as this must not be fixed forever an option is added in the config flow to set the scan interval with a minimum of 60 seconds. This option can be set when authorizing and adding a new config entry. It can also be changed later for an already configured config entry.

For already existing config entries the new default of 300 seconds will be used.