Commit Graph

63 Commits (61f137c7c65f41117ea719b13f64d36eff467674)

Author SHA1 Message Date
Andreas Wrede 30f73a4962
Add discovery of sensors on DS2409 MicroLan (#43599)
* Add discovery of sensors on DS2409 MicroLan

* Add tests for coupler

* Update tests

* Fix isort

* Clean up

* Move tests to test_sensor.py

Co-authored-by: epenet <6771947+epenet@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-12-07 02:09:32 +01:00
HomeAssistant Azure 9c63fbfcb1 [ci skip] Translation update 2020-12-07 00:04:18 +00:00
HomeAssistant Azure 42f00cff30 [ci skip] Translation update 2020-12-04 00:05:42 +00:00
epenet 55edc9f858
Cleanup unique_id on onewire integration (#43783)
* Update construction of unique_id

* Move shared logic into OneWireBaseEntity
2020-12-02 15:11:20 +01:00
epenet 48d9f1a61b
Fix duplicate check on onewire config flow (#43590) 2020-11-24 21:44:31 +01:00
HomeAssistant Azure acca35cdc4 [ci skip] Translation update 2020-11-22 00:04:54 +00:00
HomeAssistant Azure 262fadd9bc [ci skip] Translation update 2020-11-18 00:09:55 +00:00
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