Use the action field enums in kira (#195815)

This commit is contained in:
epenet
2026-12-01 16:28:46 +00:00
committed by GitHub
parent d3fd610a8e
commit bf201e9888
+4 -1
View File
@@ -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)