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.
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.