Error executing service: ServiceCall xiaomi_miio.remote_learn_command

From the Service panel of my HA I’ve been trying to execute the service like this:

xiaomi_miio.remote_learn_command
remote.mi_remote_control
entity_id: remote.mi_remote_control
slot: 1
timeout: 30

All the time I’ve got the message:

Error executing service: <ServiceCall xiaomi_miio.remote_learn_command (c:3bb14324f15d11ea9657a9c9de41e6eb): entity_id=['remote.mi_remote_control'], slot=1, timeout=30>

System status:

arch: armv7l
docker: true
docker_version: 19.03.12
hassio: true
host_os: Raspbian GNU/Linux 10 (buster)
installation_type: Home Assistant Supervised
os_name: Linux
os_version: 5.4.51-v7l+
python_version: 3.8.3
supervisor: 240
timezone: Europe/Moscow
version: 0.114.4

What’s wrong with my settings? Thanks a million for any response!