Commit Graph

56 Commits (4ffba281db64fb7638c6f65b445a60eed43a57b3)

Author SHA1 Message Date
HomeAssistant Azure 9a21421807 [ci skip] Translation update 2020-11-15 00:03:48 +00:00
epenet 7716740c18
Update inheritance for onewire entities (#43019) 2020-11-09 23:21:16 +01:00
epenet 7c397a02b7
Add onewire switches (#42962)
* Add support for switches

* Fix stale comment
2020-11-08 12:06:41 -06:00
epenet 2b2d7558de
Add binary_sensor platform to onewire integration (#42832)
* Add binary_sensor platform to onewire integration

* Keep the same name

* Rework tests

* Rework tests
2020-11-07 20:42:20 -06:00
HomeAssistant Azure eebf0ef336 [ci skip] Translation update 2020-11-08 00:04:05 +00:00
HomeAssistant Azure 57c6bb96f4 [ci skip] Translation update 2020-11-07 00:04:02 +00:00
HomeAssistant Azure e972686a13 [ci skip] Translation update 2020-11-06 00:04:57 +00:00
epenet c7cdad2b5a
Default some entities to disabled (#42797) 2020-11-04 10:08:50 +01:00
HomeAssistant Azure b71e28dfac [ci skip] Translation update 2020-11-04 00:13:14 +00:00
epenet 79b10a8efd
Update definition of onewire device specifications (#42460)
* Update definition of device specifications

* If set, sensor_name doesn't need to be capitalized
2020-11-03 18:12:01 +01:00
epenet 744e4378ff
Remove unnecessary onewire variable (#42704) 2020-11-03 09:07:22 +01:00
HomeAssistant Azure aab0ff2ea5 [ci skip] Translation update 2020-11-03 00:04:39 +00:00
epenet c8735edb7f
Optimise onewire sensor update method (#42690) 2020-10-31 14:46:31 -10:00
HomeAssistant Azure abe6f552f6 [ci skip] Translation update 2020-11-01 00:04:54 +00:00
epenet 8fabb99b2e
Cleanup local imports on onewire integration (#42689) 2020-10-31 15:08:26 -05:00
HomeAssistant Azure b9d04b9304 [ci skip] Translation update 2020-10-30 00:02:45 +00:00
HomeAssistant Azure 026e0063fe [ci skip] Translation update 2020-10-29 00:09:16 +00:00
epenet 08342a1e05
Move onewire entity classes to separate module (#42445) 2020-10-27 14:34:25 +01:00
epenet f3a15eab6e
Discover onewire devices at startup (#42410) 2020-10-26 23:36:51 -05:00
HomeAssistant Azure f4cebfbb7e [ci skip] Translation update 2020-10-27 00:06:28 +00:00
epenet 0de52c173c
Implement PlatformNotReady on onewire integration (#42395) 2020-10-26 16:33:13 +01:00
HomeAssistant Azure c2a9f2ae52 [ci skip] Translation update 2020-10-26 00:03:36 +00:00
epenet c157a582b8
Add device_info to onewire sensors (#42309)
* Add device info

* Cleanup log
2020-10-25 18:05:02 +01:00
HomeAssistant Azure 12a9504203 [ci skip] Translation update 2020-10-25 00:03:36 +00:00
epenet 5db1474099
Add device_class information to onewire sensors (#42308) 2020-10-24 14:45:01 -05:00
epenet 6ef53a2c5d
Add config flow for One wire (#39321)
* Add support for config_flow
Add support for switches
Add support for binary sensors

* Add config flow strings

* Update .coveragerc

* black-formatting

* fixes for isort and flake

* fixes for pylint

* fixes for isort

* fixes for isort

* fixes for config_flow

* Add devices to Device Registry

* Updated comments

* fixes for flake8

* Updated comments

* Updated comments

* Implement async_unload_entry

* remove binary_sensor and switch implementation (will move to new PR)

* Update .coveragerc

Co-authored-by: Chris Talkington <chris@talkingtontech.com>

* Update .coveragerc

* Review config flow to store the configuration type

* Add config_flow tests

* Move CONF_NAMES to constants

* Fix isort

* Tweak to onewire logger

* Tweak to onewire logger for sensor

* Reset _LOGGER variable

* Normalise header

* Normalise header

* Update to use references in config flow translations

* Improve test coverage

* fixes for isort

* Update async_unload_entry

* Update common strings

* Update imports

* Move connect attempt to executor

* Update common strings

* Remove OWFS from config_flow

* Prevent duplicate config entries

* Fix isort

* Fix flake8

* Fix tests following removal of OWFS implementation

* Fix flake8

* Adjust config from yaml to config-flow, and add ability to specify sysbus directory

* Ajust unique_id for config entries

* Fix test_config_flow

* Fix invalid merge

* Convert yaml to config_entry

* Update sysbus tests

* Tweaks to yaml import process, and add OWFS warning

* Enable migration of OWFS platform config to config_entry

* update the existing corresponding config entry on OWFS conversion

* Remove CONFIG_SCHEMA

* Move data_schema to constants

* Remove log message

* Remove duplicate warning

* Update already_configured to use already_configured_device constant

* Schedule get_entities on the executor

* Update duplicate entry check for OWServer

* Review TryCatch

* Schedule os.path.isdir on the executor

* rename owhost/owport

* Update checks for empty

* Fix incorrect patch

* Move config_flow validation methods to new OneWireHub

* Fix typo and pre-commit

* Cleanup try/else

* patch async_setup/async_setup_entry

* cleanup implicit exit point

* Fix invalid patch

* cleanup implicit exit point

* cleanup implicit exit point

Co-authored-by: Chris Talkington <chris@talkingtontech.com>
2020-10-23 20:57:16 -05:00
epenet 4459c843ea
Deprecate OWFS/FUSE implementation in onewire integration (#42041)
* Add warning

* Fix black

* Combine logging messages

* Combine logging messages
2020-10-19 18:23:43 +02:00
epenet ba789105ee
Add PRESSURE_CBAR to onewire constants (#41826) 2020-10-15 19:57:15 +02:00
epenet 3cba25a892
Add test coverage for onewire (#40786)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-10-14 10:19:12 +02:00
epenet 843c4e27f3
Update Onewire SysBus integration to use a 3rd party library (#40943) 2020-10-09 17:31:05 +02:00
epenet e38ae1b188
Normalise headers in onewire integration (#40774) 2020-09-30 08:53:12 +02:00
epenet ea6ec42bbd
Add onewire humidity sensors connected via DS2438 (#39780) 2020-09-27 19:16:29 -05:00
epenet f886ea9e3d
Move onewire constants to separate file (#40550)
* Move constants to separate file

* Ignore coverage of const.py
2020-09-27 19:02:20 -05:00
epenet f71816d328
Fix issue with HobbyBoard moisture meter (#40680) 2020-09-28 01:25:04 +02:00
epenet 73f29a6cd4
Ensure consitstency of file docstring for 1-wire (#40528) 2020-09-24 16:39:24 +02:00
epenet 49be073002
Update constant name for onewire (#40530) 2020-09-24 16:37:15 +02:00
springstan 6c8e0e20fb
Add and use light lux constant in entire code base (#40171) 2020-09-23 20:48:01 +02:00
springstan d2b1918e9c
Drop UNIT_ prefix for percentage constant (#39383) 2020-09-05 21:09:14 +02:00
springstan b42a197293
Add and use ELECTRICAL_CURRENT_AMPERE, ELECTRICAL_VOLTAGE_AMPERE constants (#33990)
* Add and use ELECTRICAL_CURRENT_AMPERE constant

* Add and use ELECTRICAL_VOLTAGE_AMPERE constant

* Rename ELECTRICAL_VOLTAGE_AMPERE to ELECTRICAL_VOLT_AMPERE

* Fix imports
2020-05-17 15:58:31 +02:00
springstan ef9d9b17bd
Drop UNIT_ prefix for constants (#34164)
* Drop UNIT_ prefix for VOLT

* Drop UNIT_ prefix for DEGREE

* Drop UNIT_ prefix for CONDUCTIVITY

* Drop UNIT_ prefix for UV_INDEX

* Run isort
2020-04-21 19:45:53 +02:00
springstan 04c4501455
Add and use UNIT_VOLT constant (#33994)
* Add and use UNIT_VOLT constant

* Run isort
2020-04-11 02:04:58 +02:00
springstan dde93304d3
Improve string formatting v2 (#33645)
* Improve string formatting v2

* Improve string formatting v3

* Address review comments
2020-04-04 23:09:34 +02:00
Franck Nijhof 22ae498f3a
Remove redundant open modes (#33652) 2020-04-04 22:49:15 +02:00
Paulus Schoutsen f1d3c0d19b
Remove unused manifest fields (#33595) 2020-04-03 12:58:19 -07:00
springstan f1a0ca7cd3
Add and use percentage constant (#32094)
* Add and use percentage constant

* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
MrDadoo fdfe88566b
Update onewire component (#31419)
* Added some measurement points for Family 26.
Added three attriubtes for each sensor, DEVICE_FILE, RAW_VALUE and SENSOR_TYPE
Added some comments.
Updated to get config values for owserver to get owport and owhost.

* Changed to _LOGGER.debug in some places

Resorted includes

* Fixup of code to reflect review comment, comply to Black and pass tests

* Added unique_id Entity property with device file id and added device_file as attribute that takes its data from Entities unique_id-.

* Missing blank line identified by fake8 and black

* Changed to let device_state_attributes return attribute device_file from the self._device_file member variable of the entity.

* Changed from info to debug logging
2020-02-13 21:56:20 +01:00
Franck Nijhof dc02c28891 Correct names in manifests (M-P) (#30541) 2020-01-07 13:28:35 +01:00
Franck Nijhof a84741392b
Format all manifests with prettier (#30521) 2020-01-06 21:28:23 +01:00
Ville Skyttä fa4fa30461 Various string cleanups (#30435)
* Remove some unnecessary string concatenations

* Replace some simple str.formats with f-strings

* Replace some string concatenations with f-strings
2020-01-03 14:47:06 +01:00
Tim Rightnour f32eaa2fdd Add onewire devices and owserver remote host support (#29948)
* Add support for HobbyBoards sensors: Hub, Humidity, Moisture, PulseCounter
Add support for an owserver running on a remote host

* Cleanup and fixes for style/etc

* Forgot to convert to f-strings.

* Update with changes requested by @MartinHjelmare

* Pylint

* Fix to None

* Reverse logic for hobbyboard test to eliminate pylint complaint

* Modified manifest to list myself as codeowner

* Move some functions down into OneWireProxy instead of the top OneWire

* Oops, missed some decode()'s

* And another!
2019-12-24 14:41:29 +01:00