jnimmo / hass-intesishome

Experimental fork of the IntesisHome integration for Home Assistant
19 stars 11 forks source link

Don't update devices when adding them #19

Open srkoster opened 2 weeks ago

srkoster commented 2 weeks ago

Fixes #7

With update_before_add=True, during the initialization the first device is created, updated, then added to HA and then connected to the API. The second device gets updated before the first one is connected to the API and somehow, the device list of the controller is empty then, resulting in an error and only 1 device.

update_before_add=False allows for adding all devices. They connect to the API afterwards and gets updated when the API is called, so no need for the update before add anyway.