-
-
Notifications
You must be signed in to change notification settings - Fork 31.7k
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
Install and start Mosquitto MQTT broker add on from MQTT config flow #124106
Conversation
Hey there @emontnemery, @bdraco, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Co-authored-by: Erik Montnemery <erik@montnemery.com>
"data": { | ||
"discovery": "Enable discovery" | ||
}, | ||
"data_description": { | ||
"discovery": "Option to enable MQTT automatic discovery." | ||
} |
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.
This data was not 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.
OK, then we clean that up in a separate PR.
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.
"data": { | ||
"discovery": "Enable discovery" | ||
}, | ||
"data_description": { | ||
"discovery": "Option to enable MQTT automatic discovery." | ||
} |
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.
OK, then we clean that up in a separate PR.
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 @jbouwh 👍
Thanks! |
Proposed change
This PR allows to automatically install and start the MQTT broker add-on in the Config flow to set up the MQTT integration. This means that user does not need to manually install the Mosquitto addon to be able to configure the MQTT broker from discovery. Before this PR user would get a discovery notification if the add on was installed manually.
On a supervised install the user will be shown a menu to choose to install the add-on or to manually enter the connection details.
Mqtt.config.flow.with.add-on.mp4
The
hassio
fixtures used can be shared and are placed intests/components/conftest.py
. In followup PR's other integrations should cleanup there own implementations and use the shared version instead.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: