Files
core/homeassistant/components
Jørgen Rørvikandjan Iversen 6830eec549 Flexit component fix for updated modbus (#53583)
* pyflexit first argument should be a ModbusSerialClient
This component broke with 2021.6
I have tested this patch on my setup and it restores functionality

* Implemented async reading of modbus values
Stopped using pyflexit as this is outdated and not needed
Instead using async_pymodbus_call from ModbusHub class

* Bugfix: Reading fan mode from wrong register

* Implemented async writing
Set target temperature and fan mode using modbus call
Added some error handling

* No longer require pyflexit

* Review comments.

Co-authored-by: jan Iversen <jancasacondor@gmail.com>
2021-08-07 09:45:53 +02:00
..
2021-08-02 03:40:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-06 00:15:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-07 00:10:12 +00:00
2021-07-21 12:14:47 -06:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-22 00:10:31 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-05 00:34:46 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-05 00:34:46 +00:00
2021-07-22 00:10:31 +00:00
2021-07-23 12:57:36 -04:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-08-02 03:40:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-08-05 00:34:46 +00:00
2021-08-05 00:34:46 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-06 00:15:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-05 19:24:41 -07:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-07-26 09:37:37 -07:00
2021-07-19 00:09:50 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-08-05 00:34:46 +00:00
2021-07-19 00:09:50 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-07-22 00:10:31 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-07-22 00:10:31 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 00:34:46 +00:00
2021-07-14 12:07:00 +02:00
2021-08-02 03:40:04 +00:00
2021-08-02 09:18:59 +02:00
2021-08-06 00:15:04 +00:00
2021-07-19 00:09:50 +00:00
2021-07-19 00:09:50 +00:00
2021-08-02 03:40:04 +00:00
2021-07-22 00:10:31 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-19 00:09:50 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-07-13 00:12:55 +02:00
2021-08-02 03:40:04 +00:00
2021-08-07 00:10:12 +00:00
2021-07-19 00:09:50 +00:00
2021-08-07 00:10:12 +00:00
2021-08-06 00:15:04 +00:00
2021-07-19 00:09:50 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-07-19 19:00:37 +02:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-07-22 00:10:31 +00:00
2021-08-02 03:40:04 +00:00
2021-07-19 00:09:50 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-05 00:34:46 +00:00
2021-08-02 03:40:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-07-14 21:44:57 -07:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-05 09:16:47 +02:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-14 21:44:57 -07:00
2021-07-19 00:09:50 +00:00
2021-08-02 03:40:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-05 19:23:05 -07:00
2021-08-02 03:40:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-02 11:14:45 +02:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-07-13 00:12:55 +02:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-07 00:10:12 +00:00
2021-07-22 00:10:31 +00:00
2021-08-07 00:10:12 +00:00
2021-08-06 00:15:04 +00:00
2021-07-29 21:03:13 +02:00
2021-08-07 00:10:12 +00:00
2021-08-02 03:40:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-08-06 00:15:04 +00:00
2021-08-03 00:10:03 +00:00
2021-07-22 00:10:31 +00:00
2021-07-14 21:44:57 -07:00
2021-08-07 00:10:12 +00:00
2021-07-22 00:10:31 +00:00
2021-08-07 00:10:12 +00:00
2021-07-14 21:44:57 -07:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-07-19 19:00:37 +02:00
2021-08-05 00:34:46 +00:00
2021-08-06 00:15:04 +00:00
2021-07-19 00:09:50 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-19 00:09:50 +00:00
2021-07-22 00:10:31 +00:00
2021-07-22 21:56:38 +02:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-06 00:15:04 +00:00
2021-08-06 00:15:04 +00:00
2021-07-19 00:09:50 +00:00
2021-08-06 00:15:04 +00:00
2021-08-02 03:40:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-07-14 21:44:57 -07:00
2021-08-04 12:34:04 +02:00
2021-08-02 03:40:04 +00:00
2021-08-07 00:10:12 +00:00
2021-08-07 00:10:12 +00:00
2021-08-05 00:34:46 +00:00
2021-07-22 00:10:31 +00:00
2021-08-02 03:40:04 +00:00
2021-08-07 00:10:12 +00:00