v0.6.31 — Flat remaining charging time for PHEV (#31)
Fixes Remaining charging time staying Unknown on flat/PHEV vehicles (e.g. VW Tayron) even when the portal JSON contains values like remaining_charging_time: 75 (#31).
The value was parsed correctly but hidden by an overly strict “actively charging” gate that only recognised dotted BEV companion fields, not flat charging_state.
Remaining charging time (#31)
charging_time_is_applicable()moved todata.pyand extended for flat payloads:charging_statevaluescharging/conservationChargingcount as active;off/completed/ etc. suppress the reading.- Fallback now trusts the portal value when no explicit inactive signal was found (instead of requiring all companion fields to be absent).
- Dotted BEV behaviour unchanged: scenario
_OFFand charge power ≤ 0 still hide the sensor.
After upgrading
Reload the integration or restart Home Assistant. Remaining charging time should show minutes during the next charging session when the portal sends the field.