Skip to content

Add optional unit of measurement#6796

Merged
fabaff merged 1 commit into
home-assistant:devfrom
fabaff:unit-random
Mar 26, 2017
Merged

Add optional unit of measurement#6796
fabaff merged 1 commit into
home-assistant:devfrom
fabaff:unit-random

Conversation

@fabaff
Copy link
Copy Markdown
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
Copy Markdown

@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