-
-
Notifications
You must be signed in to change notification settings - Fork 32k
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
fix AndroidTV logging when disconnected #132919
fix AndroidTV logging when disconnected #132919
Conversation
Hey there @JeffLIrion, @ollo69, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
DEFAULT_TRANSPORT_TIMEOUT_S, | ||
False, |
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.
why not just?
DEFAULT_TRANSPORT_TIMEOUT_S, | |
False, | |
log_errors=False, |
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 would have added the param name for all of them, but I just aligned to the syntax used.
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.
personally I'd say just add it to all of them and leave out the default
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.
Imho providing param name and avoid to import useless constant is better.
But be careful, in this way we will totally loose information about what is causing connection failure.
My suggestion is to find a way to set this value to false
only if this is not the first try, so error will be logged at least once.
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 though the approach would be to add as less changes as possible, but I agree on the approach.
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.
So let's leave for a next PR, but don't forget this. Connection error log should be useful in many cases.
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.
LGTM 👍
Breaking change
Proposed change
Change logging level to avoid filling up the log while the device is off:
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
.To help with the load of incoming pull requests: