mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +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)
|
_LOGGER.debug("Run API method %s, kwargs=%s", method, kwargs)
|
||||||
result_ok = False
|
result_ok = False
|
||||||
try:
|
try:
|
||||||
result = self._kodi.call_method(method, **kwargs)
|
result = await self._kodi.call_method(method, **kwargs)
|
||||||
result_ok = True
|
result_ok = True
|
||||||
except jsonrpc_base.jsonrpc.ProtocolError as exc:
|
except jsonrpc_base.jsonrpc.ProtocolError as exc:
|
||||||
result = exc.args[2]["error"]
|
result = exc.args[2]["error"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user