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

Support more types of 1wire sensors and bus masters #2384

Merged
merged 2 commits into from
Jun 29, 2016
Merged

Support more types of 1wire sensors and bus masters #2384

merged 2 commits into from
Jun 29, 2016

Conversation

ardzeus
Copy link
Contributor

@ardzeus ardzeus commented Jun 28, 2016

Description:

Related issue (if applicable): fixes #2088

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

Example entry for configuration.yaml (if applicable):

sensor:
  - platform: onewire
    mount_dir: "/mnt/1wire"

Checklist:

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

If code communicates with devices:

  • Local tests with tox run successfully. Your PR cannot be merged unless tests pass
  • New dependencies have been added to the REQUIREMENTS variable (example).
  • New dependencies are only imported inside functions that use them (example).
  • New dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
  • New files were added to .coveragerc.

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.
  • Added support for DS18S20, DS1822, DS1825 and DS28EA00 temperature sensors
  • Added support for bus masters which use fuse to mount device tree.
    Mount can be specified by 'mount_dir' configuration parameter.

- Added support for DS18S20, DS1822, DS1825 and DS28EA00 temperature sensors
- Added support for bus masters which use fuse to mount device tree.
  Mount can be specified by 'mount_dir' configuration parameter.
try:
temp = round(float(temp_read[0]), 1)
except ValueError:
_LOGGER.warning('Invalid temperature value read from ' + self._device_file)

Choose a reason for hiding this comment

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

farcy v1.1

  • 80: E501 line too long (95 > 79 characters)

@balloob
Copy link
Member

balloob commented Jun 29, 2016

Looks good! 🐬

@balloob balloob merged commit 78e7e17 into home-assistant:dev Jun 29, 2016
@ardzeus ardzeus deleted the ardetus_onewire branch June 29, 2016 08:21
@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.

Other OneWire sensors than DS18B20
3 participants