clssn
15b1a9ecea
Add numato integration ( #33816 )
...
* Add support for Numato 32 port USB GPIO boards
Included are a binary_sensor, sensor and switch component
implementations. The binary_sensor interface pushes updates via
registered callback functions, so no need to poll here.
Unit tests are included to test against a Numato device mockup.
* Refactor numato configuration due to PR finding
* Resolve minor review findings
* Bump numato-gpio requirement
* Load numato platforms during domain setup
According to review finding
* Guard from platform setup without discovery_info
According to review finding
* Move numato API state into hass.data
According to review finding.
* Avoid side effects in numato entity constructors
According to review finding
* Keep only first line of numato module docstrings
Removed reference to the documentation. Requested by reviewer.
* Minor improvements inspired by review findings
* Fix async tests
Pytest fixture was returning from the yield too early executing teardown
code during test execution.
* Improve test coverage
* Configure GPIO ports early
Review finding
* Move read_gpio callback to outside the loop
Also continue on failed switch setup, resolve other minor review
findings and correct some error messages
* Bump numato-gpio requirement
This fixes a crash during cleanup. When any device had a communication
problem, its cleanup would raise an exception which was not handled,
fell through to the caller and prevented the remaining devices from
being cleaned up.
* Call services directly
Define local helper functions for better readability.
Resolves a review finding.
* Assert something in every test
So not only coverage is satisfied but things are actually tested
to be in the expected state.
Resolves a review finding.
* Clarify scope of notification tests
Make unit test for hass NumatoAPI independent of Home Assistant (very basic test of notifications).
Improve the regular operations test for notifications.
* Test for hass.states after operating switches
Resolves a review finding.
* Check for wrong port directions
* WIP: Split numato tests to multiple files
test_hass_binary_sensor_notification still fails.
* Remove pytest asyncio decorator
Apears to be redundant. Resolves a review finding.
* Call switch services directly.
Resolves a review finding.
* Remove obsolete inline pylint config
Co-Authored-By: Martin Hjelmare <marhje52@gmail.com >
* Improve the numato_gpio module mockup
Resolves a review finding.
* Remove needless explicit conversions to str
Resolves review findings.
* Test setup of binary_sensor callbacks
* Fix test_hass_binary_sensor_notification
* Add forgotten await
Review finding.
Co-authored-by: Martin Hjelmare <marhje52@gmail.com >
2020-04-30 14:23:30 +02:00
..
2020-04-11 22:53:48 +02:00
2020-02-23 13:38:05 -08:00
2020-04-14 23:15:08 +02:00
2020-04-09 17:41:17 +02:00
2020-04-24 10:11:17 -07:00
2020-04-25 18:05:28 +02:00
2020-04-06 10:09:44 -07:00
2020-04-21 10:46:56 -07:00
2020-02-23 12:23:21 +01:00
2020-04-25 14:32:55 -07:00
2020-02-24 21:37:38 -08:00
2020-04-14 18:41:19 +02:00
2020-04-09 00:57:47 +02:00
2019-03-22 11:59:10 -07:00
2019-12-09 13:57:24 +01:00
2020-01-31 08:33:00 -08:00
2020-01-02 21:17:10 +02:00
2020-04-01 14:19:51 -07:00
2020-02-28 11:46:48 -08:00
2020-04-15 17:42:01 +02:00
2020-04-22 18:09:51 +02:00
2020-04-28 23:22:33 -05:00
2020-01-09 08:40:10 +01:00
2020-02-23 13:38:05 -08:00
2020-01-05 07:23:22 -06:00
2020-04-24 14:13:39 -07:00
2020-04-25 14:32:55 -07:00
2019-12-09 11:23:21 +01:00
2020-04-25 14:32:55 -07:00
2020-04-22 11:25:14 -07:00
2020-04-23 21:57:07 +02:00
2019-12-09 13:52:18 +01:00
2020-01-05 23:13:54 +02:00
2020-04-05 00:26:08 +02:00
2020-04-21 16:46:12 +02:00
2020-04-05 00:26:08 +02:00
2020-03-20 10:21:43 +01:00
2020-04-08 23:20:03 +02:00
2020-02-15 19:31:36 -08:00
2019-07-31 12:25:30 -07:00
2020-04-12 14:56:19 +02:00
2020-04-10 19:17:46 +02:00
2020-04-25 14:32:55 -07:00
2020-03-02 07:44:24 -06:00
2020-04-25 18:04:03 +02:00
2020-04-25 14:32:55 -07:00
2019-12-09 18:56:21 +01:00
2020-04-06 12:51:48 +02:00
2020-04-25 14:32:55 -07:00
2019-12-09 18:56:21 +01:00
2020-02-08 13:10:59 +01:00
2020-04-25 14:32:55 -07:00
2020-03-04 21:42:07 -08:00
2020-04-20 18:07:50 -07:00
2020-04-25 18:07:15 +02:00
2019-12-04 22:47:40 -08:00
2020-04-05 00:26:08 +02:00
2020-04-05 00:26:08 +02:00
2020-04-17 23:51:35 +02:00
2020-04-06 13:36:49 +02:00
2020-04-26 02:11:08 +02:00
2020-01-02 22:30:20 +01:00
2020-04-11 15:40:59 +02:00
2020-02-02 07:13:07 -08:00
2020-04-13 15:33:04 +02:00
2020-04-25 14:32:55 -07:00
2020-04-06 12:51:48 +02:00
2020-04-15 18:08:54 -07:00
2020-04-07 09:34:13 -07:00
2020-04-08 18:29:46 -07:00
2020-04-10 20:21:29 +02:00
2019-07-31 12:25:30 -07:00
2019-12-09 17:42:00 +01:00
2020-04-24 09:30:45 -07:00
2020-04-15 14:03:14 -07:00
2020-04-14 09:56:50 +02:00
2019-11-26 08:59:55 -08:00
2020-04-05 00:26:08 +02:00
2020-01-04 22:45:11 +01:00
2020-04-16 15:18:41 -07:00
2020-04-17 11:59:27 -05:00
2019-12-09 13:20:51 +01:00
2019-11-25 18:00:58 -08:00
2019-07-31 12:25:30 -07:00
2020-03-05 17:19:30 -08:00
2020-02-24 17:54:20 -08:00
2020-01-20 18:44:55 +02:00
2020-04-20 18:07:50 -07:00
2020-02-24 17:54:20 -08:00
2020-01-01 17:22:08 -06:00
2020-01-02 14:22:13 -06:00
2020-02-24 17:54:20 -08:00
2020-04-05 03:50:30 +02:00
2020-03-04 12:47:53 -08:00
2020-04-08 16:29:59 -05:00
2020-04-02 16:54:11 -07:00
2020-04-13 15:33:04 +02:00
2020-04-05 03:50:30 +02:00
2020-04-05 03:50:30 +02:00
2020-04-09 17:41:17 +02:00
2020-04-25 14:32:55 -07:00
2020-01-02 14:22:30 -06:00
2020-04-28 22:17:35 -07:00
2020-04-25 17:30:15 -07:00
2020-01-27 09:12:18 -08:00
2020-04-11 02:12:39 +02:00
2020-04-09 00:57:47 +02:00
2020-03-22 09:35:58 -05:00
2020-04-11 02:12:39 +02:00
2019-04-14 16:59:06 -07:00
2019-12-09 14:17:36 +01:00
2020-02-24 17:54:20 -08:00
2020-04-11 02:12:39 +02:00
2019-12-08 23:33:42 +01:00
2019-12-31 13:05:31 +01:00
2020-02-10 15:02:14 -08:00
2020-02-24 17:54:20 -08:00
2020-04-24 15:09:45 -07:00
2020-02-24 17:54:20 -08:00
2020-04-05 02:21:07 +02:00
2020-04-06 12:51:48 +02:00
2020-04-04 22:31:56 +02:00
2020-02-24 17:54:20 -08:00
2020-04-06 12:51:48 +02:00
2020-03-10 23:00:30 +01:00
2020-04-20 18:07:50 -07:00
2019-11-25 15:44:11 -08:00
2020-04-02 09:46:10 -07:00
2020-04-25 14:32:55 -07:00
2020-04-10 19:17:46 +02:00
2020-02-27 12:19:54 +01:00
2020-04-11 16:47:07 +02:00
2020-04-25 14:32:55 -07:00
2020-04-05 00:26:08 +02:00
2020-01-02 21:17:10 +02:00
2020-04-25 14:32:55 -07:00
2020-04-30 00:09:33 -07:00
2020-04-20 07:32:30 -04:00
2019-12-09 14:19:48 +01:00
2020-04-17 11:35:30 -07:00
2020-01-02 21:17:10 +02:00
2020-04-08 23:20:03 +02:00
2020-04-09 17:41:17 +02:00
2020-01-25 13:09:43 +02:00
2020-04-28 10:31:22 -07:00
2020-04-29 14:24:57 -07:00
2019-12-09 11:56:51 +01:00
2020-04-05 15:21:22 -07:00
2020-04-05 00:33:07 +02:00
2020-04-11 02:12:39 +02:00
2020-04-12 14:56:19 +02:00
2019-12-09 14:21:24 +01:00
2020-04-07 23:14:28 +02:00
2020-04-20 18:07:50 -07:00
2020-04-20 18:07:50 -07:00
2020-04-20 18:07:50 -07:00
2020-04-20 18:07:50 -07:00
2020-04-20 18:07:50 -07:00
2020-04-11 15:40:59 +02:00
2020-02-08 13:10:59 +01:00
2020-01-06 01:22:22 +01:00
2020-04-17 10:25:31 +02:00
2020-04-25 14:32:55 -07:00
2020-04-30 00:21:53 -07:00
2019-07-31 12:25:30 -07:00
2020-04-29 13:38:20 +02:00
2020-04-25 14:32:55 -07:00
2020-02-16 00:00:17 +01:00
2019-12-09 14:25:18 +01:00
2020-04-16 18:34:53 +02:00
2020-04-05 18:03:13 +02:00
2020-04-26 18:49:41 +02:00
2020-01-29 21:59:24 -08:00
2020-04-07 23:14:28 +02:00
2020-04-17 13:10:48 +02:00
2020-04-09 16:06:01 +02:00
2020-04-05 00:26:08 +02:00
2020-04-25 18:02:41 +02:00
2020-04-20 17:48:09 -07:00
2020-01-02 21:17:10 +02:00
2019-12-09 14:22:30 +01:00
2019-12-09 14:22:30 +01:00
2019-12-09 14:22:30 +01:00
2020-03-28 13:57:36 +01:00
2020-04-25 14:32:55 -07:00
2020-04-09 00:57:47 +02:00
2020-04-05 00:33:07 +02:00
2020-04-24 00:07:07 +02:00
2020-04-07 23:14:28 +02:00
2020-04-08 23:20:03 +02:00
2020-04-25 18:00:57 +02:00
2020-04-09 17:41:17 +02:00
2020-04-06 10:09:44 -07:00
2020-01-06 01:22:22 +01:00
2020-03-09 14:07:50 -07:00
2020-02-10 17:00:22 +01:00
2019-12-09 18:50:40 +05:30
2020-04-10 19:17:46 +02:00
2020-04-25 14:32:55 -07:00
2020-04-05 00:33:07 +02:00
2020-04-05 00:33:07 +02:00
2020-04-25 14:32:55 -07:00
2020-04-10 19:17:46 +02:00
2020-03-23 16:51:13 -07:00
2020-01-20 18:44:55 +02:00
2020-04-05 00:33:07 +02:00
2019-12-09 18:50:40 +05:30
2020-04-17 09:55:57 +02:00
2020-02-28 11:46:48 -08:00
2020-04-09 17:04:12 +02:00
2019-12-09 18:50:40 +05:30
2020-04-28 10:31:22 -07:00
2020-04-28 10:31:22 -07:00
2020-02-24 08:47:52 -08:00
2020-04-05 00:26:08 +02:00
2020-04-28 10:31:22 -07:00
2020-04-25 17:09:08 -05:00
2019-12-09 18:50:40 +05:30
2020-01-06 01:22:22 +01:00
2019-12-09 11:05:22 +01:00
2019-12-09 18:46:56 +01:00
2019-12-09 12:08:51 +01:00
2020-03-20 15:22:27 +01:00
2020-04-29 14:02:59 -07:00
2019-12-10 09:22:13 +01:00
2020-01-01 17:18:40 -06:00
2019-07-31 12:25:30 -07:00
2020-04-25 14:32:55 -07:00
2020-04-05 00:33:07 +02:00
2020-04-11 02:12:39 +02:00
2020-04-08 23:20:03 +02:00
2020-04-30 14:23:30 +02:00
2020-04-16 14:59:30 -07:00
2020-04-18 08:59:20 -05:00
2020-04-06 12:51:48 +02:00
2020-04-09 17:41:17 +02:00
2020-04-25 14:32:55 -07:00
2020-04-25 14:32:55 -07:00
2020-04-05 05:04:41 +02:00
2019-12-09 14:26:53 +01:00
2020-04-25 14:32:55 -07:00
2019-12-09 14:26:53 +01:00
2020-01-29 18:18:24 +01:00
2020-04-25 14:32:55 -07:00
2020-04-18 05:19:01 +02:00
2020-03-15 11:51:02 -07:00
2019-07-31 12:25:30 -07:00
2019-12-09 14:29:39 +01:00
2020-02-14 15:27:31 -08:00
2019-12-12 19:43:49 +01:00
2020-04-06 12:51:48 +02:00
2020-04-28 10:31:22 -07:00
2020-04-28 10:31:22 -07:00
2019-12-04 22:47:40 -08:00
2020-04-26 19:14:53 -05:00
2020-04-21 19:45:53 +02:00
2020-04-07 23:14:28 +02:00
2020-04-27 11:36:24 +02:00
2019-12-09 14:29:39 +01:00
2019-12-09 14:29:39 +01:00
2019-12-09 13:06:25 +01:00
2020-04-10 20:21:29 +02:00
2020-04-05 00:26:08 +02:00
2020-04-11 02:12:39 +02:00
2020-04-23 08:44:28 +02:00
2020-04-25 17:08:37 -05:00
2020-02-13 08:52:57 -08:00
2020-04-25 14:32:55 -07:00
2019-12-04 22:47:40 -08:00
2020-04-16 15:11:36 -07:00
2019-12-09 14:39:51 +01:00
2020-01-05 14:09:17 +02:00
2020-04-26 02:12:36 +02:00
2020-04-08 23:20:03 +02:00
2019-12-09 14:39:51 +01:00
2020-04-17 17:15:04 +02:00
2020-04-06 12:51:48 +02:00
2020-04-25 14:32:55 -07:00
2020-04-25 14:32:55 -07:00
2020-04-21 21:06:23 -07:00
2020-04-11 10:55:00 -05:00
2020-04-09 00:57:47 +02:00
2020-01-14 13:03:02 -08:00
2020-04-06 11:21:52 +02:00
2020-04-20 18:07:50 -07:00
2020-04-05 00:26:08 +02:00
2020-02-05 16:52:21 +01:00
2019-12-09 14:38:01 +01:00
2020-02-25 16:37:41 -07:00
2020-04-05 00:33:07 +02:00
2020-04-25 14:32:55 -07:00
2019-12-09 14:38:01 +01:00
2020-04-25 14:32:55 -07:00
2020-04-09 00:57:47 +02:00
2019-12-09 14:38:01 +01:00
2020-03-04 17:31:54 -08:00
2020-02-01 14:21:16 -08:00
2020-03-12 22:00:00 -07:00
2019-12-09 14:38:01 +01:00
2020-04-05 00:26:08 +02:00
2020-04-21 19:45:53 +02:00
2020-04-29 14:05:20 -07:00
2020-04-25 14:32:55 -07:00
2020-01-05 14:09:17 +02:00
2019-12-09 14:38:01 +01:00
2020-01-31 08:33:00 -08:00
2020-04-25 14:32:55 -07:00
2019-12-11 13:27:28 +01:00
2019-12-09 12:07:10 +01:00
2020-02-28 11:46:48 -08:00
2020-02-05 15:50:20 -08:00
2020-03-30 17:27:02 +02:00
2020-04-10 19:17:46 +02:00
2019-12-09 14:38:01 +01:00
2019-12-09 14:38:01 +01:00
2020-04-07 09:34:13 -07:00
2019-10-20 10:10:27 +02:00
2019-12-19 19:28:03 +02:00
2020-04-05 00:33:07 +02:00
2020-04-09 00:57:47 +02:00
2020-04-10 19:17:46 +02:00
2019-10-14 14:19:37 -07:00
2020-04-09 00:57:47 +02:00
2020-04-09 00:57:47 +02:00
2019-12-09 14:38:01 +01:00
2020-04-26 18:50:37 +02:00
2019-12-09 14:38:01 +01:00
2020-04-23 17:53:18 -07:00
2019-07-31 12:25:30 -07:00
2020-03-16 11:58:12 +01:00
2020-04-25 17:08:53 -05:00
2019-07-31 12:25:30 -07:00
2020-04-09 00:57:47 +02:00
2020-01-31 08:33:00 -08:00
2020-04-20 14:26:28 +02:00
2020-04-25 14:32:55 -07:00
2019-12-09 14:41:48 +01:00
2019-12-23 21:48:24 +01:00
2020-04-20 18:07:50 -07:00
2020-01-31 08:33:00 -08:00
2020-01-20 18:44:55 +02:00
2019-12-06 10:40:38 +01:00
2020-04-12 21:29:57 -05:00
2020-04-29 13:44:40 -07:00
2020-04-05 00:26:08 +02:00
2020-04-27 01:57:29 +02:00
2020-02-27 12:19:54 +01:00
2019-07-31 12:25:30 -07:00
2019-12-09 14:41:48 +01:00
2020-04-08 19:18:09 -05:00
2020-04-04 14:51:12 +02:00
2020-04-05 00:33:07 +02:00
2020-02-18 11:51:37 -08:00
2020-02-24 21:27:07 -08:00
2020-04-23 21:29:38 +02:00
2020-04-07 09:34:13 -07:00
2020-04-25 18:00:57 +02:00
2020-03-04 08:05:46 -08:00
2020-04-25 14:32:55 -07:00
2019-12-09 19:07:32 +01:00
2020-04-11 02:12:39 +02:00
2020-04-10 20:21:29 +02:00
2020-04-23 15:52:36 -07:00
2020-04-26 02:11:08 +02:00
2020-01-31 08:33:00 -08:00
2020-04-03 09:49:50 +02:00
2020-01-07 17:30:53 +01:00
2020-04-07 09:36:35 -07:00
2019-12-09 11:56:02 +01:00
2020-04-24 10:55:01 -05:00
2020-04-16 16:16:35 -07:00
2020-02-04 14:42:07 -08:00
2020-04-06 12:51:48 +02:00
2019-12-09 14:47:53 +01:00
2020-04-20 18:07:50 -07:00
2019-12-09 14:47:53 +01:00
2020-01-03 14:47:06 +01:00
2020-04-25 15:40:44 -07:00
2020-04-15 13:36:16 -07:00
2020-04-08 11:57:42 -07:00
2020-04-03 22:41:08 -07:00
2020-03-10 08:53:06 +01:00
2019-12-09 14:47:53 +01:00
2019-12-09 14:47:53 +01:00
2020-04-07 23:14:28 +02:00
2020-03-09 17:18:39 -06:00
2020-04-07 23:14:28 +02:00
2020-04-29 01:44:31 +02:00
2019-12-09 14:57:42 +01:00
2020-03-07 18:26:35 +01:00
2020-04-09 17:41:17 +02:00
2020-04-08 23:20:03 +02:00
2020-04-21 19:45:53 +02:00
2020-04-24 15:09:45 -07:00
2020-04-11 15:40:59 +02:00
2020-03-18 18:14:25 -07:00
2020-04-28 10:31:22 -07:00
2016-03-09 10:25:50 +01:00
2020-04-08 10:31:44 -07:00