Skip to content

Comments

Feat: support multiple Integration entries#24

Open
Flix6x wants to merge 8 commits intomainfrom
feat/support-multiple-integrations
Open

Feat: support multiple Integration entries#24
Flix6x wants to merge 8 commits intomainfrom
feat/support-multiple-integrations

Conversation

@Flix6x
Copy link
Collaborator

@Flix6x Flix6x commented Apr 10, 2025

Closes #23.

NB this does not add support for saving multiple schedules yet, because they all get saved to the same entity. I could imagine doing something like:

self._attr_unique_id = f"{SCHEDULE_ENTITY}-{entry_id}"

to support saving separate schedules for separate FlexMeasuresClient instances, but since we would want to be able to save schedules for multiple assets under a single Client later I propose to tackle this separately.

Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x requested a review from victorgarcia98 April 10, 2025 13:42
@Flix6x Flix6x self-assigned this Apr 10, 2025
Flix6x added 7 commits April 10, 2025 15:43
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…g entry 'Mock Title' from integration flexmeasures_hacs has an invalid unique_id '1212121' of type int when a string is expected`

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…ta[DOMAIN]

Signed-off-by: F.N. Claessen <felix@seita.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support multiple Integrations

1 participant