Skip to content

Add device registry for MQTT sensors#6513

Merged
frenck merged 3 commits intonextfrom
mqtt-device-registry-2
Oct 11, 2018
Merged

Add device registry for MQTT sensors#6513
frenck merged 3 commits intonextfrom
mqtt-device-registry-2

Conversation

@OttoWinter
Copy link
Copy Markdown
Member

Description:

Add device registry integration to MQTT sensors. The plan is to expand it to other platforms too.

Pull request in home-assistant (if applicable): home-assistant/core#16943

Checklist:

  • Branch: next is for changes and new documentation that will go public with the next home-assistant release. Fixes, changes and adjustments for the current release should be created against current.
  • The documentation follow the standards.

@ghost ghost assigned OttoWinter Oct 4, 2018
@ghost ghost added the ready-for-review This PR needs to be reviewed label Oct 4, 2018
@OttoWinter OttoWinter added Hacktoberfest An PR on this issue (or the PR itself) is eligible towards Hacktoberfest! new-feature This PR adds documentation for a new Home Assistant feature to an existing integration labels Oct 4, 2018
@frenck frenck added next This PR goes into the next branch has-parent This PR has a parent PR in another repo labels Oct 5, 2018
DubhAd
DubhAd previously approved these changes Oct 6, 2018
Copy link
Copy Markdown
Contributor

@DubhAd DubhAd left a comment

Choose a reason for hiding this comment

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

👍

@DubhAd DubhAd added awaits-parent Awaits the merge of an parent PR and removed ready-for-review This PR needs to be reviewed labels Oct 6, 2018
Copy link
Copy Markdown
Member

@frenck frenck left a comment

Choose a reason for hiding this comment

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

@OttoWinter Left you some comments, could you please take a look?

type: device_class
default: None
device:
description: 'Information about the device this sensor is a part of to tie it into the [device registry](https://developers.home-assistant.io/docs/en/device_registry_index.html). Only works through [MQTT discovery](/docs/mqtt/discovery/) and when [`unique_id`](#unique_id) is set.'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some commas would make it more readable (just like the other PRs).

Comment thread source/_components/sensor.mqtt.markdown Outdated
connections:
description: 'A list of connections of the device to the outside world as a list of tuples `[connection_type, connection_identifier]`. For example the MAC address of a network interface: `"connections": [["mac", "02:5b:26:a8:dc:12"]]`.'
required: false
type: list, tuple
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

tuple is not a valid documentation configuration type.

@frenck frenck added in-progress This PR/Issue is currently being worked on parent-merged The parent PR has been merged already and removed awaits-parent Awaits the merge of an parent PR labels Oct 8, 2018
@OttoWinter OttoWinter force-pushed the mqtt-device-registry-2 branch from 0860687 to 358fa0c Compare October 10, 2018 14:05
@ghost ghost added ready-for-review This PR needs to be reviewed and removed in-progress This PR/Issue is currently being worked on labels Oct 10, 2018
@frenck frenck merged commit 60f4bdb into next Oct 11, 2018
@ghost ghost removed the ready-for-review This PR needs to be reviewed label Oct 11, 2018
@frenck frenck deleted the mqtt-device-registry-2 branch October 11, 2018 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Hacktoberfest An PR on this issue (or the PR itself) is eligible towards Hacktoberfest! has-parent This PR has a parent PR in another repo new-feature This PR adds documentation for a new Home Assistant feature to an existing integration next This PR goes into the next branch parent-merged The parent PR has been merged already

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants