Skip to content

Fix validation and use consts (mqtt)#4396

Merged
fabaff merged 1 commit into
home-assistant:devfrom
fabaff:vol-mqtt
Nov 15, 2016
Merged

Fix validation and use consts (mqtt)#4396
fabaff merged 1 commit into
home-assistant:devfrom
fabaff:vol-mqtt

Conversation

@fabaff
Copy link
Copy Markdown
Member

@fabaff fabaff commented Nov 15, 2016

Description:
The configuration variables qos and retain introduced in #4381 are optional.

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#1445

Example entry for configuration.yaml (if applicable):

...
birth_message:
  topic: 'hass/status'
  payload: 'online'

Checklist:

If user exposed functionality or configuration variables are added/changed:

If the code does not interact with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • Tests have been added to verify that the new code works.

@mention-bot
Copy link
Copy Markdown

@fabaff, thanks for your PR! By analyzing the history of the files in this pull request, we identified @balloob, @bestlibre and @jaharkes to be potential reviewers.

@balloob
Copy link
Copy Markdown
Member

balloob commented Nov 15, 2016

Looks good! 🐬

@fabaff fabaff merged commit edde76e into home-assistant:dev Nov 15, 2016
@fabaff fabaff deleted the vol-mqtt branch November 15, 2016 07:33
@@ -139,8 +138,8 @@ def valid_publish_topic(value):
# Service call validation schema
MQTT_PUBLISH_SCHEMA = vol.Schema({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Required above was copied from here. Are QOS and RETAIN required here also ? Or could it be set to optional ?

@fabaff fabaff mentioned this pull request Nov 15, 2016
2 tasks
@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants