-
-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
Add bandwidth sensor for unifi device ports #115362
Conversation
Hey there @Kane610, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
465335c
to
01af544
Compare
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! Make these sensors disabled by default, I think these are just too many to populate all at once with the setting. I think over time that config will be removed and just have them disabled by default.
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
01af544
to
bb55a3f
Compare
@Kane610 disabled by default now. |
bb55a3f
to
b6e9370
Compare
Hello,
|
Yes let's do this. |
b6e9370
to
95c0e03
Compare
@Kane610 @wittypluck I change to what is was suggested. I also removed the |
95c0e03
to
933cffa
Compare
Looks ok, will review tonight |
011a3fa
to
a21fbfd
Compare
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.
Final thing, it's good to keep unique ids unique per source as well. Just in case some migration is needed down the line
a21fbfd
to
0114388
Compare
Thanks! Next time try to avoid doing a rebase after fixing a comment, takes longer to look through. |
Maybe you could add a small note to the integration documentation about it as well? |
Should i just add commits with fixes and you will squash them? And then rebase before merge ? |
Squash and merge is the common approach on this github repo so just bring on the commits ;) I'm not saying you can't rebase everything into one commit but then I can't see the incremental changes Rebase at the end is only needed if there is a merge conflict with dev |
Proposed change
This PR aims to add bandwidth sensors for unify device ports.
It makes it possible to for users to track bandwidth usage on each port, so they can make nice dashboards.
I was considering to add only for WAN ports, but then I tought it might just be easier to add for all ports, and then let the users enable the ones they want to use.
Type of change
Additional information
Checklist
ruff format 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: