mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 11:33:11 -04:00
Use the action field enums in kira (#195815)
This commit is contained in:
@@ -43,6 +43,9 @@ class KiraRemote(remote.RemoteEntity):
|
||||
def send_command(self, command: Iterable[str], **kwargs: Any) -> None:
|
||||
"""Send a command to one device."""
|
||||
for single_command in command:
|
||||
code_tuple = (single_command, kwargs.get(remote.ATTR_DEVICE))
|
||||
code_tuple = (
|
||||
single_command,
|
||||
kwargs.get(remote.RemoteServiceArgument.DEVICE),
|
||||
)
|
||||
_LOGGER.debug("Sending Command: %s to %s", *code_tuple)
|
||||
self._kira.sendCode(code_tuple)
|
||||
|
||||
Reference in New Issue
Block a user