Skip to content

Refactor usage of roles to add support for delegated devices #13

@Kanaduchi

Description

@Kanaduchi

In case the devices are not added directly to MelCloud but are delegated from another owner, the fetch_energy_report and fetch_device_units methods may throw a 403 (Access Denied) error.

I propose a small refactor that would bypass these methods when such errors occur.

These errors should not affect the operation of other methods, since ATA units can still be fully controlled via the API.

Affected integration with HA: home-assistant/core#156618

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions