mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 12:59:34 +00:00
Allow modbus "scale" to be negative. (#109965)
This commit is contained in:
@@ -688,6 +688,16 @@ async def test_config_wrong_struct_sensor(
|
||||
False,
|
||||
"112594",
|
||||
),
|
||||
(
|
||||
{
|
||||
CONF_DATA_TYPE: DataType.INT16,
|
||||
CONF_SCALE: -1,
|
||||
CONF_OFFSET: 0,
|
||||
},
|
||||
[0x000A],
|
||||
False,
|
||||
"-10",
|
||||
),
|
||||
],
|
||||
)
|
||||
async def test_all_sensor(hass: HomeAssistant, mock_do_cycle, expected) -> None:
|
||||
|
||||
Reference in New Issue
Block a user