Closed vincent8balls closed 9 months ago
Currently the app is doing multiple requests to the Devices endpoint of Homey. This makes the settings page slower.
This can be reduced to a single function, and filter out the capabilities instead. For example:
function getDevices(devices, type) { if(type == 'button') { devices.filter(device => device.capabilities.includes('on_off') || device.capabilities.includes('dim')); } return devices; }
Your pull requests have been incorporated in the latest test version.
Currently the app is doing multiple requests to the Devices endpoint of Homey. This makes the settings page slower.
This can be reduced to a single function, and filter out the capabilities instead. For example: