Skip to content

API does not create properties if hub has no schedules #30

@msp1974

Description

@msp1974

It is possible to have no schedules on a Wiser hub, If this is the case then the api will not create all the properties and causes an error setting up the HA integration, with the following error:

Traceback (most recent call last): File “/config/custom_components/wiser/config_flow.py”, line 157, in async_step_zeroconf_confirm validated = await validate_input(self.hass, user_input) File “/config/custom_components/wiser/config_flow.py”, line 59, in validate_input wiser_id = wiser.system.name AttributeError: ‘NoneType’ object has no attribute ‘name’

Need amendment to allow properties to create is no schedules exist on hub.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions