homeassistant-mikrotik_router
homeassistant-mikrotik_router copied to clipboard
Add wifi support for ROS 7.13+ devices without a physical wifi radio
Proposed change
My CCR2004 has no physical wifi radio, but can manage CAPs through the wifi menu.
Since ROS 7.13, this is no longer a separate package (only routeros is listed under packages).
With this PR, we add support for this scenario by disabling capsman and setting the _wifimodule to wifi if we're running on ROS 7.13 or later.
Type of change
- [x] Bugfix
- [ ] New feature
- [ ] Code quality improvements to existing code or addition of tests
- [ ] Documentation
Additional information
Note: The code was not formatted with black as that would have resulted in a lot of unrelated changes.
Checklist
- [x] The code change is tested and works locally.
- [ ] The code has been formatted using Black.
- [ ] Tests have been added to verify that the new code works.
- [ ] Documentation added/updated if required.