Add support for params in send_command (#23071)
* add support for params in send_command * add more tests
This commit is contained in:
1 parent
df580b2322
commit
1d2e9b6915
2 files changed
+18
-3
No files matched your search
@@ -130,6 +130,15 @@ async def test_all_commands(hass, mock_publish):
|
||||
await hass.async_block_till_done()
|
||||
mock_publish.async_publish.assert_called_once_with(
|
||||
'vacuum/send_command', '44 FE 93', 0, False)
|
||||
mock_publish.async_publish.reset_mock()
|
||||
|
||||
common.send_command(hass, '44 FE 93', {"key": "value"},
|
||||
entity_id='vacuum.mqtttest')
|
||||
await hass.async_block_till_done()
|
||||
await hass.async_block_till_done()
|
||||
mock_publish.async_publish.assert_called_once_with(
|
||||
'vacuum/send_command', '{"command": "44 FE 93", "key": "value"}',
|
||||
0, False)
|
||||
|
||||
|
||||
async def test_status(hass, mock_publish):
|
||||
|
||||
Reference in new issue
Block a user