From 3f514da285b55320bcd19694031b06313c9aac3c Mon Sep 17 00:00:00 2001 From: On Freund Date: Fri, 18 Sep 2020 16:24:14 +0300 Subject: [PATCH] Fix kodi.call_method (#40236) --- homeassistant/components/kodi/media_player.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/components/kodi/media_player.py b/homeassistant/components/kodi/media_player.py index f13d5301625..a1b9987b5c9 100644 --- a/homeassistant/components/kodi/media_player.py +++ b/homeassistant/components/kodi/media_player.py @@ -714,7 +714,7 @@ class KodiEntity(MediaPlayerEntity): _LOGGER.debug("Run API method %s, kwargs=%s", method, kwargs) result_ok = False try: - result = self._kodi.call_method(method, **kwargs) + result = await self._kodi.call_method(method, **kwargs) result_ok = True except jsonrpc_base.jsonrpc.ProtocolError as exc: result = exc.args[2]["error"]