Files
home-assistant-core/homeassistant/components
Claudiu BucurandMartin Hjelmare e6a2507b50 Fix serial integration connection stability (#33067)
* Fix serial integration connection stability

Retry to connect if serial device is not available on start, or connection is lost.
Added some more log entries upon connection or when errors are encountered.

* Updated code based on review

* Fixed exception indentation

* Handle SerialException

* Sort imports

* Update homeassistant/components/serial/sensor.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

* Update homeassistant/components/serial/sensor.py

Co-Authored-By: Martin Hjelmare <marhje52@gmail.com>

* More clean up

* Format and delint

* Extract error handler

* Clean up stop handler

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2020-04-19 22:29:57 +02:00
..
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-11 15:39:09 +02:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-12 21:44:56 +02:00
2020-04-19 00:03:42 +00:00
2020-04-18 00:04:07 +00:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-15 09:51:07 -07:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-18 00:04:07 +00:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-19 00:03:42 +00:00
2020-04-15 09:51:07 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-11 17:00:12 +02:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-11 00:37:43 +02:00
2020-04-16 13:00:10 -07:00
2020-04-10 22:01:57 +02:00
2020-04-08 11:47:38 -05:00
2020-04-10 22:01:57 +02:00
2020-04-10 22:01:57 +02:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-04 23:14:47 +02:00
2020-04-16 13:00:10 -07:00
2020-04-04 22:49:15 +02:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-04 20:05:15 +02:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-14 09:16:41 +02:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-18 00:04:07 +00:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-10 22:01:57 +02:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-18 00:04:07 +00:00
2020-04-16 13:00:10 -07:00
2020-04-10 22:01:57 +02:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-12 21:35:47 -05:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-18 00:04:07 +00:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-10 22:01:57 +02:00
2020-04-04 22:31:56 +02:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-04 22:31:56 +02:00
2020-04-18 00:04:07 +00:00
2020-04-16 13:00:10 -07:00
2020-04-05 17:48:55 +02:00
2020-04-19 12:27:16 +02:00
2020-04-04 22:31:56 +02:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-10 22:01:57 +02:00
2020-04-11 13:04:54 +02:00
2020-04-10 22:01:57 +02:00
2020-04-04 23:14:47 +02:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-18 00:04:07 +00:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-10 22:01:57 +02:00
2020-04-19 00:03:42 +00:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-08 13:12:18 +02:00
2020-04-15 09:51:07 -07:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-10 22:01:57 +02:00
2020-04-19 00:03:42 +00:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-04 15:49:29 +02:00
2020-04-10 22:01:57 +02:00
2020-04-16 13:00:10 -07:00
2020-04-08 13:12:07 +02:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-04 22:31:56 +02:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:13:08 -07:00
2020-04-19 00:03:42 +00:00
2020-04-16 13:00:10 -07:00
2020-04-10 22:01:57 +02:00
2020-04-04 22:45:55 +02:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-04 22:31:56 +02:00
2020-04-19 17:43:22 +02:00
…
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-11 13:04:54 +02:00
2020-04-11 12:52:43 +02:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-18 00:04:07 +00:00
2020-04-16 13:00:10 -07:00
2020-04-10 22:01:57 +02:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-19 00:03:42 +00:00
2020-04-08 11:47:38 -05:00
2020-04-08 11:47:38 -05:00
2020-04-08 11:47:38 -05:00
2020-04-14 20:26:13 +02:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-16 13:00:10 -07:00
2020-04-08 11:47:38 -05:00
2020-04-08 11:47:38 -05:00
2020-04-05 17:48:55 +02:00
2020-04-10 22:01:57 +02:00
2020-04-12 21:44:56 +02:00
2020-04-18 00:04:07 +00:00
2020-04-16 13:00:10 -07:00