Commit graph

14 commits

Author SHA1 Message Date
jan iversen
199cf649be
Add test of lazy_error in modbus () 2021-10-11 12:43:05 +02:00
jan iversen
f91d214ba4
Break out mock of pymodbus return from mock_modbus to new fixture ()
* Remove unused mock_modbus.

* Break out mock pymodbus return values.

* Review comments.
2021-08-23 23:55:57 +02:00
jan iversen
da20552cd8
Remove base_test from modbus test harness ()
* Remove base_test.

* Review comments.
2021-08-22 19:59:38 +02:00
jan iversen
33f660118f
Add lazy_error_count to modbus ()
* Add lazy_error_count.

* Use -=

* Review comments.
2021-08-21 15:49:50 +02:00
jan iversen
0688aaa2b6
Check for duplicate entity name/address in modbus entities ()
* Check for duplicate entity name/address.
2021-08-19 09:37:31 +02:00
jan iversen
71b0f6d095
set common test entity name. () 2021-08-17 20:43:27 +02:00
jan iversen
4ef9269790
Replace prepare_service_call with a simpler fixture in modbus ()
* Convert prepare_service_call to a fixture.
2021-08-11 12:42:28 +02:00
jan iversen
2e2b340b1e
Set modbus entity to non-available unless scan_interval=0 () 2021-07-20 22:48:02 -07:00
jan iversen
c0751c060f
review comments. () 2021-06-30 14:34:33 +02:00
jan iversen
74e1600a84
Add fixture to handle mock restore state () 2021-06-28 22:21:04 -07:00
jan iversen
08b0ef7a5e
Use test fixture for configuration testing ()
* Autospec mock_modbus and usei for configuration.

* Review comment.
2021-06-17 12:27:05 +02:00
jan iversen
00507539c1
Change Cover to use address/input_type ()
* Change Cover to use address/input_type.

* Flake.
2021-05-28 13:23:44 +02:00
jan iversen
47f016b340
Remove old config from cover, including tests ()
* Remove old config and standardize new config.

* Add missing safeguard.
2021-05-28 11:29:37 +02:00
jan iversen
f55213d8b1
Update modbus cover to 100% coverage () 2021-05-23 10:18:35 -05:00
Renamed from tests/components/modbus/test_modbus_cover.py (Browse further)