mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Add float32 test to modbus (#57805)
This commit is contained in:
parent
0ad5ad5ca7
commit
34984d78a1
@ -541,6 +541,17 @@ async def test_config_wrong_struct_sensor(hass, error_message, mock_modbus, capl
|
|||||||
False,
|
False,
|
||||||
str(int(0x04030201)),
|
str(int(0x04030201)),
|
||||||
),
|
),
|
||||||
|
(
|
||||||
|
{
|
||||||
|
CONF_COUNT: 2,
|
||||||
|
CONF_INPUT_TYPE: CALL_TYPE_REGISTER_INPUT,
|
||||||
|
CONF_DATA_TYPE: DataType.FLOAT32,
|
||||||
|
CONF_PRECISION: 2,
|
||||||
|
},
|
||||||
|
[16286, 1617],
|
||||||
|
False,
|
||||||
|
"1.23",
|
||||||
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
async def test_all_sensor(hass, mock_do_cycle, expected):
|
async def test_all_sensor(hass, mock_do_cycle, expected):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user