MQTT Python 3.5 Async Await Syntax (#12815)
* MQTT Async Await * Remove unused decorator.
This commit is contained in:
parent
de3c76983a
commit
d3386907a4
2 changed files with 41 additions and 52 deletions
|
@ -28,6 +28,7 @@ def async_mock_mqtt_client(hass, config=None):
|
|||
with mock.patch('paho.mqtt.client.Client') as mock_client:
|
||||
mock_client().connect.return_value = 0
|
||||
mock_client().subscribe.return_value = (0, 0)
|
||||
mock_client().unsubscribe.return_value = (0, 0)
|
||||
mock_client().publish.return_value = (0, 0)
|
||||
result = yield from async_setup_component(hass, mqtt.DOMAIN, {
|
||||
mqtt.DOMAIN: config
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue