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