Add Tasmota device trigger (#41590)
* Add Tasmota device trigger * Correct import * Remove useless try-except * Remove commented out code * Align with hatasmota 0.0.14 * Update according to review comments
This commit is contained in:
1 parent
731d617c5e
commit
9e9f841f35
6 files changed
+1212
-1
No files matched your search
@@ -10,7 +10,12 @@ from homeassistant.components.tasmota.const import (
|
||||
)
|
||||
|
||||
from tests.async_mock import patch
|
||||
from tests.common import MockConfigEntry, mock_device_registry, mock_registry
|
||||
from tests.common import (
|
||||
MockConfigEntry,
|
||||
async_mock_service,
|
||||
mock_device_registry,
|
||||
mock_registry,
|
||||
)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
@@ -25,6 +30,12 @@ def entity_reg(hass):
|
||||
return mock_registry(hass)
|
||||
|
||||
|
||||
@pytest.fixture
|
||||
def calls(hass):
|
||||
"""Track calls to a mock service."""
|
||||
return async_mock_service(hass, "test", "automation")
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def disable_debounce():
|
||||
"""Set MQTT debounce timer to zero."""
|
||||
|
||||
Reference in new issue
Block a user