Open joostlek opened 15 hours ago
Hey there @frenck, mind taking a look at this pull request as it has been labeled with an integration (spotify
) you are listed as a code owner for? Thanks!
What happens if you skip to the next song?
If you skip a song it will just have the regular interval. I'd rather make it like this than set the update interval lower. With this logic we would at least refresh at a moment we know when there is new data
Proposed change
Make spotify update interval dynamic, since we know when a track is expected to end, so if we schedule our update just after the track has ended, we can be more accurate
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: