New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fortios device tracker updates #92331
Conversation
Added support for FortiOS 7.0 and retaining FortiOS 6.4 support. Since an API was deprecated in FortiOS 7.0 and replace by a new API the integration now also support FortiOS 7.0. It is planned to deprecate the support for FortiOS 6.4 in a year
indentation fix
run flake8 fixes
black fixing line breaks
black fixes
linter fixes
linter fixes
linter fix
removed comment that pylint does not like :-~
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
to resolve double guard for supported versions.
Deprecated old api. cleaned up code. better checking with try-catch removed unnecessary error output.
lint compliance.
lint updates
lint updates
lint updates
lint updates
updated to use awesomeversion component.
pylint updates
pylint updates
bug fix. Check on json keys before accessing them. performance optimise, by filtering on the parameters to fetch from FortiGate.
performance optimisation, bug fix and update to work with HASS 2023.4
removed as requested.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest reverting all the refactoring and just make a PR that fixes the open issue. The refactoring is making the code harder to read and generally less succinct.
reverted all refactoring and only fixed the open issue.
added newline at EOF
removed unused import.
mypy fixes
added typing
Thanks for the good improvements. all resolved. |
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One comment remaining.
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Proposed change
Updated Fortios device tracker with bugfixes which caused the device tracker to no respond any values due to a change in the API format returned by FortiOS.
Performance uptimization.
Thanks to @julian0703 for helping with finding the bug, suggestions and testing.
Type of change
Additional information
Checklist
black --fast homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
..coveragerc
.To help with the load of incoming pull requests: