mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 04:50:05 +00:00
MQTT Python 3.5 Async Await Syntax (#12815)
* MQTT Async Await * Remove unused decorator.
This commit is contained in:
committed by
Paulus Schoutsen
parent
de3c76983a
commit
d3386907a4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user