-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Remove entity name input from Samsung TV config flow #144225
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
base: dev
Are you sure you want to change the base?
Remove entity name input from Samsung TV config flow #144225
Conversation
Hey there @epenet, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
@@ -1292,7 +1292,7 @@ async def test_autodetect_legacy(hass: HomeAssistant) -> None: | |||
) | |||
assert result["type"] is FlowResultType.CREATE_ENTRY | |||
assert result["data"][CONF_METHOD] == "legacy" | |||
assert result["data"][CONF_NAME] == "fake_name" | |||
assert result["data"][CONF_NAME] is None |
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 are we testing is None?
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.
Only because other fields are tested for None as well.
PR updated
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 think conf_name needs a thorough review, as it seems to be passed and used by the legacy bridge
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.
If name
was set previously, then we still might want to respect this.
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 think you need to update strings.json
accordingly.
Also, could we drop CONF_NAME
and self._name
completely from the config-flow?
If #144254 is accepted, then it is no longer needed by the integration:
- in
_async_get_and_check_device_info
we can just setself._title
withoutself._name
- in
async_step_reauth_confirm
, I think we should usereauth_entry.title
for thetitle_placeholder
and thedescription_placeholder
- in
async_step_reauth_confirm_encrypted
, I think we should also usereauth_entry.title
for thetitle_placeholder
and thedescription_placeholder
- in
async_step_reauth
, we can dropself._title
assignment (not needed after changes above)
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Breaking change
Proposed change
Remove entity name input from Samsung TV config flow as requested by @joostlek here: #142288 (comment)
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: