epenet
231d434b76
Use new Platform enum in Onewire ( #60904 )
...
* Use new Platform enum in Onewire
* Use Platform in tests
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-03 09:25:22 -08:00
epenet
7e81c6a591
Move onewire device compatibility checks ( #59338 )
...
* Move device compatibility checks to onewirehub
* Add test for dtoverlay warning
* Add tests for unknown device warning
* Move dtoverlay error
* Empty commit to retrigger tests
* Update description
* Patch asyncio.sleep to speed up the tests
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-09 18:30:05 +01:00
epenet
c00a5fad8f
Cleanup device registration in Onewire ( #58101 )
...
* Add checks for device registry
* Move registry checks to init.py
* Run device registry check on disabled devices
* Empty commit for testing
* Register devices during initialisation
* Adjust tests accordingly
* Add via_device to device info
* Adjust access to device registry
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-22 11:45:40 +02:00
epenet
dfd2501c2c
Cleanup duplicate code in Onewire tests ( #58082 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-20 11:43:59 +02:00
epenet
704929ddd0
Remove legacy tests in onewire ( #58075 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-20 09:10:32 +02:00
epenet
1b0118a81b
Use constants in Onewire tests ( #58017 )
...
* Use ATTR_ENTITY_ID constant
* Add ATTR_UNIQUE_ID constant
* Add new attribute constants
* Fix missing ATTR_DEFAULT_DISABLED
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-19 21:41:01 +02:00
epenet
29c062fcc4
Rework Onewire tests to enable disabled entities ( #58014 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-19 09:10:26 +02:00
epenet
24737d4d1d
Use pytest fixtures on Onewire tests ( #57973 )
...
* Add pytest fixtures
* Add sysbus fixtures
* Adjust parameter name
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-10-18 19:16:53 +02:00
Paulus Schoutsen
a4d9019ffc
Refactor persistent notification to no longer route all data via a service ( #57157 )
...
* Convert persistent notification tests to async
* Create/dismiss persistent notifications in exposed functions, not service calls
* Fix notify persistent_notification
* Remove setting up persistent_notification
* Drop more setups
* Empty methods
* Undeprecate sync methods because too big task
* Fix setup clearing notifications
* Fix a bunch of tests
* Fix more tests
* Uno mas
* Test persistent notification events
* Clean up stale comment
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-10-07 12:58:00 +02:00
epenet
ccaf0d5c75
Use EntityDescription - onewire ( #55003 )
2021-08-24 10:37:59 +02:00
epenet
bb7236fd04
Use constants for device_info in Onewire integration ( #53724 )
2021-07-30 13:35:49 +02:00
epenet
87dab02ce6
Remove YAML configuration from onewire ( #53728 )
2021-07-29 22:12:00 -07:00
epenet
86176f1bf9
Add retry mechanism on onewire sysbus devices ( #48614 )
...
* Add retry mechanism on sysbus
* Update tests
* Move to async
* Move blocking calls on the executor
2021-04-03 23:08:35 +02:00
epenet
81bdd41fdc
Cleanup orphan devices in onewire integration ( #48581 )
...
* Cleanup orphan devices (https://github.com/home-assistant/core/issues/47438 )
* Refactor unit testing
* Filter device entries for this config entry
* Update logging
* Cleanup check
2021-04-01 15:06:47 +02:00
Quentame
198ecb0945
Uniformize platform setup ( #47101 )
...
* A platform is not a component
* Fix dynalite
* SUPPORTED_PLATFORMS --> PLATFORMS
* In tests
* In tests 2
* Fix SmartThings
* Fix ZHA test
* Fix Z-Wave
* Revert Z-Wave
* Use PLATFORMS const in ambient_station
* Fix ihc comment
2021-03-02 21:43:59 +01:00
Franck Nijhof
65cf2fcb6f
Drop asynctest ( #44746 )
2021-01-01 22:31:56 +01:00
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
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
3cba25a892
Add test coverage for onewire ( #40786 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-10-14 10:19:12 +02:00