Skip to content

Error when calling limit_current: '<=' not supported between instances of 'int' and 'NoneType' after recent update #283

@Fatherjohn

Description

@Fatherjohn

After updating to the latest version of the Zaptec integration, the service call zaptec.limit_current fails both in Node-RED and directly from Home Assistant Developer Tools.

Actual behavior:
The service fails with the following error: HomeAssistantError: Limit current failed: '<=' not supported between instances of 'int' and 'NoneType'

Additional information:
This setup has worked reliably for over two years.
The error occurs even when calling the service directly from Developer Tools, without Node-RED.
In Developer Tools → States, the charger entity no longer shows a numeric max_current attribute — it appears to be null.
It seems this attribute might have been removed in the latest version, but the limit_current logic still expects it to be a number.

Home Assistant core version: 2025.8.1

Zaptec integration version: 0.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions