core/tests/components/modbus
jan iversen ff856a9bba
Simplify calls to pymodbus (#50717)
* simplify pymodbus_call.

Do not call with a function object and a check attribute, call instead
with CALL_TYPE*.

Avoid if <type> call x else call y.
Call async_pymodbus_call directly, instead of unpacking/packing.

* Declare call type in __init__.

* Modbus.py back to 100% test coverage.
2021-05-17 11:20:12 +02:00
..
__init__.py
conftest.py Enable homeassistant.update_entity service for all modbus platforms (#49918) 2021-05-02 10:41:36 +02:00
test_init.py Fix modbus blocking threads (#50619) 2021-05-15 19:54:17 +02:00
test_modbus_binary_sensor.py Enable homeassistant.update_entity service for all modbus platforms (#49918) 2021-05-02 10:41:36 +02:00
test_modbus_climate.py Enable homeassistant.update_entity service for all modbus platforms (#49918) 2021-05-02 10:41:36 +02:00
test_modbus_cover.py Correct Modbus platform cover restore state (#50421) 2021-05-16 08:40:19 +02:00
test_modbus_sensor.py Use mock_restore_state in testing of modbus sensor (#50455) 2021-05-15 21:39:41 +02:00
test_modbus_switch.py Simplify calls to pymodbus (#50717) 2021-05-17 11:20:12 +02:00