Break out mock of pymodbus return from mock_modbus to new fixture (#55063)

* Remove unused mock_modbus.

* Break out mock pymodbus return values.

* Review comments.
This commit is contained in:
jan iversen 2021-08-23 23:55:57 +02:00 committed by GitHub
parent 7314b1c8e1
commit f91d214ba4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 98 additions and 37 deletions

View file

@ -86,7 +86,7 @@ async def test_config_climate(hass, mock_modbus):
),
],
)
async def test_temperature_climate(hass, expected, mock_modbus, mock_do_cycle):
async def test_temperature_climate(hass, expected, mock_do_cycle):
"""Run test for given config."""
assert hass.states.get(ENTITY_ID).state == expected