From b41bf15c9485b8628188be5cc4fb8d0ea5f612b5 Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Tue, 1 Dec 2026 17:27:08 +0100 Subject: [PATCH] Use the action field enums in itach (#195808) --- homeassistant/components/itach/remote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/homeassistant/components/itach/remote.py b/homeassistant/components/itach/remote.py index 5197e5a92732..be5df989bf07 100644 --- a/homeassistant/components/itach/remote.py +++ b/homeassistant/components/itach/remote.py @@ -9,9 +9,9 @@ import pyitachip2ir from homeassistant.components import remote from homeassistant.components.remote import ( - ATTR_NUM_REPEATS, DEFAULT_NUM_REPEATS, PLATFORM_SCHEMA as REMOTE_PLATFORM_SCHEMA, + RemoteServiceArgument, ) from homeassistant.const import ( CONF_DEVICES, @@ -149,7 +149,7 @@ class ITachIP2IRRemote(remote.RemoteEntity): @override def send_command(self, command: Iterable[str], **kwargs: Any) -> None: """Send a command to one device.""" - num_repeats = kwargs.get(ATTR_NUM_REPEATS, DEFAULT_NUM_REPEATS) + num_repeats = kwargs.get(RemoteServiceArgument.NUM_REPEATS, DEFAULT_NUM_REPEATS) for single_command in command: self.itachip2ir.send( self.name, single_command, self._ir_count * num_repeats