You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit c900c30
Browse filesBrowse the repository at this point in the historyBrowse files
fix(octopus): name the car charging rate setting with the entity prefix in use (#5438)
The ambiguous-charger warning told the user to set
input_number.predbat_car_charging_rate, but the entity prefix is
configurable (apps.yaml prefix), so with a custom prefix it named an
entity that doesn't exist. It now uses the component's own prefix.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: apps/predbat/octopus.py
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -58,11 +58,12 @@
58
58
CATALOGUE_FRESH_MINUTES=24*60
59
59
CATALOGUE_STALE_MINUTES=25*60
60
60
# Logged by log_catalogue_ambiguity() when the catalogue gives a make and model more than one value (issue #5438).
61
-
# A charge point's power only ever raises input_number.predbat_car_charging_rate (fetch.py), so that is what decides
61
+
# A charge point's power only ever raises input_number.{prefix}_car_charging_rate (fetch.py), so that is what decides
62
62
# the rate; a vehicle's battery size from Octopus replaces car_charging_battery_size, so there is no setting to change.
63
+
# {prefix} is the entity prefix in use (apps.yaml prefix, "predbat" by default).
63
64
CATALOGUE_AMBIGUOUS_CHARGER= (
64
65
"Octopus's catalogue lists charge point {device} at more than one power ({values} {unit}) and Predbat can't tell which yours is,"
65
-
" so it uses the lowest, {value} {unit}, unless input_number.predbat_car_charging_rate (_1, _2 for further cars) is higher. Set that to your charger's rate"
66
+
" so it uses the lowest, {value} {unit}, unless input_number.{prefix}_car_charging_rate (_1, _2 for further cars) is higher. Set that to your charger's rate"
66
67
)
67
68
CATALOGUE_AMBIGUOUS_VEHICLE= (
68
69
"Octopus's catalogue lists vehicle {device} with more than one battery size ({values} {unit}) and Predbat can't tell which yours is,"
0 commit comments