-
-
Notifications
You must be signed in to change notification settings - Fork 112
Minor cleanup #3647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor cleanup #3647
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -933,9 +933,9 @@ def get_entity_name(self, root, suffix, index=""): | |
| Get the entity name | ||
| """ | ||
| if index: | ||
| entity_name = root + ".predbat_octopus_" + self.account_id.replace("-", "_") + "_" + suffix + "_" + index | ||
| entity_name = root + "." + self.prefix + "_octopus_" + self.account_id.replace("-", "_") + "_" + suffix + "_" + index | ||
| else: | ||
| entity_name = root + ".predbat_octopus_" + self.account_id.replace("-", "_") + "_" + suffix | ||
| entity_name = root + "." + self.prefix + "_octopus_" + self.account_id.replace("-", "_") + "_" + suffix | ||
|
Comment on lines
935
to
+938
|
||
| entity_name = entity_name.lower() | ||
| return entity_name | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change makes the published entity IDs depend on the configured prefix, but Components routes events using a hardcoded filter substring ("predbat_kraken_"). With a non-default prefix, select/number events for Kraken entities won’t reach KrakenAPI. Update event_filter to be prefix-aware (or keep backward-compatible naming) to avoid breaking custom-prefix setups.