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 eeeae4f
Browse filesBrowse the repository at this point in the historyBrowse files
fix(car): clamp num_cars to the supported maximum and exclude suspended Octopus devices
An Octopus account with more than 4 registered Intelligent devices (including
suspended/decommissioned chargers) auto-bumped num_cars with no upper bound,
past what CONFIG_ITEMS and the prediction kernel (KERNEL_MAX_CARS) actually
support. Car indices beyond 4 have no car_charging_rate_N config entity, so
get_car_charging_planned() crashed every cycle with TypeError: float()
argument must be a string or a real number, not 'NoneType'.
Clamp num_cars to PREDBAT_MAX_CARS in fetch_config_options() regardless of
source, and exclude suspended devices from automatic_config()'s device count
and entity lists so a stale/decommissioned charger no longer counts as a car.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments