Skip to content

Setup fails because ChargerFirmware requires fields no longer returned by the API #400

Closed

Description

@Danhe046

My setup is:

  • Home Assistant Core: 2026.7.1
  • Home Assistant OS: 18.1
  • Supervisor: 2026.06.2
  • Frontend: 20260624.4
  • Zaptec integration: 0.8.7

The failure is dues to ChargerFirmware does not contain the fields CurrentVersion and IsUpToDate. Making those optional locally solves the issue for me.

Activity

  1. rhammen commented on Jul 14, 2026

    @rhammen
    Contributor

    Thanks for the report and for pinpointing the fields involved — that matches what we found.

    This looks like the same root cause as #359: the ChargerFirmware validation model in zaptec/validate.py requires CurrentVersion, IsUpToDate (and a few other fields) even though the code that consumes them (poll_firmware_info() in zaptec/api.py) already handles them being absent — e.g. for a charger that's been added but not yet fully initialized/online. So the validation model was stricter than necessary and rejected a valid API response.

    The fix is already up in #397, which relaxes ChargerFirmware so only ChargerId stays required and DeviceType, IsOnline, CurrentVersion, AvailableVersion, IsUpToDate all become optional — matching what your local workaround does. It just hasn't merged yet. Given that in your case this results in the setup of the integration failing, underpins the importance of the fix. Let's see if @sveinse can get it integrated in the next release.

  2. Danhe046 commented on Jul 14, 2026

    @Danhe046
    Author

    Awesome! Yes, PR 397 does exactly what i did locally!

  3. added this to the v0.8.8 milestone on Jul 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions