Skip to content
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

Add optional unit of measurement #6796

Merged
merged 1 commit into from
Mar 26, 2017
Merged

Add optional unit of measurement #6796

merged 1 commit into from
Mar 26, 2017

Conversation

fabaff
Copy link
Member

@fabaff fabaff commented Mar 26, 2017

Description:

With the new optional configuration variable unit_of_measurement the sensor can be used to simulate a real sensor.

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

Example entry for configuration.yaml (if applicable):

sensor:
  - platform: random
    name: Temperature
    min: 20
    max: 25
    unit_of_measurement: '°C'

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

@fabaff, thanks for your PR! By analyzing the history of the files in this pull request, we identified @pvizeli to be a potential reviewer.

@fabaff fabaff merged commit 7782e7e into home-assistant:dev Mar 26, 2017
@fabaff fabaff deleted the unit-random branch March 26, 2017 13:53
@fabaff fabaff mentioned this pull request Apr 6, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Jul 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants