Avoid service call in MQTT async_publish function (#58441)
* Avoid service call in MQTT async_publish function * Tweak * Fix integrations + tests
This commit is contained in:
parent
11cb04822e
commit
0456a896e3
26 changed files with 207 additions and 211 deletions
|
@ -149,7 +149,7 @@ class MqttLock(MqttEntity, LockEntity):
|
|||
|
||||
This method is a coroutine.
|
||||
"""
|
||||
mqtt.async_publish(
|
||||
await mqtt.async_publish(
|
||||
self.hass,
|
||||
self._config[CONF_COMMAND_TOPIC],
|
||||
self._config[CONF_PAYLOAD_LOCK],
|
||||
|
@ -166,7 +166,7 @@ class MqttLock(MqttEntity, LockEntity):
|
|||
|
||||
This method is a coroutine.
|
||||
"""
|
||||
mqtt.async_publish(
|
||||
await mqtt.async_publish(
|
||||
self.hass,
|
||||
self._config[CONF_COMMAND_TOPIC],
|
||||
self._config[CONF_PAYLOAD_UNLOCK],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue