1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Correct tests to use data_type in Modbus (#67246)

This commit is contained in:
jan iversen
2022-02-25 20:37:52 +01:00
committed by GitHub
parent e81ca64aa4
commit 8233278ccc
3 changed files with 34 additions and 65 deletions

View File

@@ -13,7 +13,6 @@ from homeassistant.components.modbus.const import (
from homeassistant.const import (
ATTR_TEMPERATURE,
CONF_ADDRESS,
CONF_COUNT,
CONF_NAME,
CONF_SCAN_INTERVAL,
CONF_SLAVE,
@@ -46,7 +45,7 @@ ENTITY_ID = f"{CLIMATE_DOMAIN}.{TEST_ENTITY_NAME}".replace(" ", "_")
CONF_ADDRESS: 117,
CONF_SLAVE: 10,
CONF_SCAN_INTERVAL: 20,
CONF_COUNT: 2,
CONF_DATA_TYPE: DataType.INT32,
CONF_LAZY_ERROR: 10,
}
],
@@ -68,7 +67,7 @@ async def test_config_climate(hass, mock_modbus):
CONF_SLAVE: 1,
CONF_TARGET_TEMP: 117,
CONF_ADDRESS: 117,
CONF_COUNT: 2,
CONF_DATA_TYPE: DataType.INT32,
},
],
},
@@ -94,7 +93,6 @@ async def test_temperature_climate(hass, expected, mock_do_cycle):
{
CONF_CLIMATES: [
{
CONF_COUNT: 2,
CONF_NAME: TEST_ENTITY_NAME,
CONF_TARGET_TEMP: 117,
CONF_ADDRESS: 117,