Use serial port selector in Monoprice config flow - #175707
Merged
balloob merged 2 commits intoJul 5, 2026
Merged
Conversation
Now that pymonoprice uses serialx, switch the config flow's port field from a plain text input to SerialPortSelector, matching the pattern used by denon_rs232 and russound_rio. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
|
Hey there @etsinko, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Monoprice 6-Zone Amplifier config flow to use SerialPortSelector for the port field instead of a plain str text input. This follows a recent migration where pymonoprice began using serialx, and aligns the integration with the serial-port UX pattern already used by integrations like denon_rs232 and russound_rio. The change gives users a selectable list of detected serial ports rather than requiring them to type the device path.
Changes:
- Import
SerialPortSelectorfromhomeassistant.helpers.selector. - Replace
vol.Required(CONF_PORT): strwithvol.Required(CONF_PORT): SerialPortSelector()inDATA_SCHEMA.
SerialPortSelector populates its dropdown via the usb integration's list_serial_ports websocket command, which is only registered once usb is set up. denon_rs232 and russound_rio, cited as the pattern this integration follows, both declare the dependency. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
balloob
approved these changes
Jul 5, 2026
| "name": "Monoprice 6-Zone Amplifier", | ||
| "codeowners": ["@etsinko", "@OnFreund"], | ||
| "config_flow": true, | ||
| "dependencies": ["usb"], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now that pymonoprice uses serialx, switch the config flow's port field from a plain text input to SerialPortSelector, matching the pattern used by denon_rs232 and russound_rio.
Proposed change
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: