mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 13:57:10 +00:00
Fix kodi.call_method (#40236)
This commit is contained in:
parent
2d9019d4b2
commit
3f514da285
@ -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"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user