Create binary_sensor only for configured sectors #59
Proposed Changes:
I have modified how sectors and inputs binary sensors are created
Now the integration create only binary sensors for sectors that are configured in control panel
Screenshoot of binary sensors with original code:
Screenshoot of binary sensors with modified code:
Testing:
Nothing is changed for the user configuration
Checklist
[X] Related issues and proposed changes are filled
[X] Tests are defining the correct and expected behavior
Related Issues
Create binary_sensor only for configured sectors #59
Proposed Changes:
I have modified how sectors and inputs binary sensors are created Now the integration create only binary sensors for sectors that are configured in control panel
Screenshoot of binary sensors with original code:![after](https://github.com/palazzem/ha-econnect-alarm/assets/76836856/f30449e0-508e-4a25-8eb4-208a1088bffc)
Screenshoot of binary sensors with modified code:![before](https://github.com/palazzem/ha-econnect-alarm/assets/76836856/327fd588-7691-4bab-9611-9322567eec9f)
Testing:
Nothing is changed for the user configuration
Checklist