Open ismdcf opened 1 month ago
This pull request adds support for the QOS feature, allowing it to be toggled on and off. The implementation includes new switch entity descriptions, API methods for toggling and fetching QOS data, and necessary data preparation methods. Additionally, tests and fixture data have been added to ensure the functionality works as expected.
Files | Changes |
---|---|
custom_components/miwifi/switch.py custom_components/miwifi/luci.py custom_components/miwifi/updater.py custom_components/miwifi/const.py |
Implemented QOS feature support including switch entity descriptions, API methods, and data preparation. |
tests/test_switch.py tests/fixtures/qos_data.json |
Added tests and fixture data for QOS feature. |
Added ability to turn on and off the QOS feature.
Summary by Sourcery
This pull request introduces support for the QOS feature, allowing it to be toggled on and off. It includes updates to switch entity descriptions, availability checks, and adds corresponding test cases and fixtures.