FaserF / ha-rewe

Rewe Discounts Homeassistant Integration
GNU General Public License v3.0
15 stars 4 forks source link

Custom Update Interval doesn't work #1

Closed FaserF closed 2 years ago

FaserF commented 2 years ago

Describe the bug Right now the sensors will refresh every 30 seconds, no matter what interval has been provided at the setup.

To Reproduce Steps to reproduce the behavior:

Go to add integration Add rewe discounts Define a custom interval Have a look at the sensor attribute at "last updated" Expected behavior The custom refresh interval should be working.

Version Details

Homeassistant Version: 2022.08.06 Rewe Integration Version: 1.0.0

Additional context Also see https://github.com/FaserF/ha-foodsharing/issues/3 - same issue

FaserF commented 2 years ago

a better solution would be to force a refresh only on startup/setup/every monday night at 00:00

FaserF commented 2 years ago

Custom update interval option has been removed, as the products won’t change within 7 days a sync every day should be enough.