Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion homeassistant/components/renault/quality_scale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@ rules:
docs-supported-functions: todo
docs-troubleshooting: done
docs-use-cases: todo
dynamic-devices: todo
dynamic-devices:
status: exempt
comment: |
Adding/removing a vehicle is a rare occurrence, and we don't want to
waste valuable hits on Renault API, which is rate-limited
Comment on lines +53 to +54
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like odd reasoning to me: A rare occurrence + worrying about rate-limiting.

If I might suggest an alternative, could you trigger a config entry reload if the change is detected?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no way to know without making a specific API "list vehicles" request

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@frenck are you suggesting that I should make an API call at regular interval to see if there are new vehicles?
If we are making a "list vehicles" call every few minutes we would need to reduce the interval for more important data calls.

I guess we could make a call every 24h, but seems a lot of work for very little benefit.

entity-category: done
entity-device-class: done
entity-disabled-by-default: done
Expand Down