mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Allow modbus negative min/max value. (#109995)
This commit is contained in:
@@ -185,6 +185,28 @@ SLAVE_UNIQUE_ID = "ground_floor_sensor"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
CONF_SENSORS: [
|
||||
{
|
||||
CONF_NAME: TEST_ENTITY_NAME,
|
||||
CONF_ADDRESS: 51,
|
||||
CONF_DATA_TYPE: DataType.INT16,
|
||||
CONF_MIN_VALUE: 1,
|
||||
CONF_MAX_VALUE: 3,
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
CONF_SENSORS: [
|
||||
{
|
||||
CONF_NAME: TEST_ENTITY_NAME,
|
||||
CONF_ADDRESS: 51,
|
||||
CONF_DATA_TYPE: DataType.INT16,
|
||||
CONF_MIN_VALUE: -3,
|
||||
CONF_MAX_VALUE: -1,
|
||||
}
|
||||
]
|
||||
},
|
||||
],
|
||||
)
|
||||
async def test_config_sensor(hass: HomeAssistant, mock_modbus) -> None:
|
||||
|
||||
Reference in New Issue
Block a user