Use the action field enums in directv (#195592)

This commit is contained in:
epenet
2026-11-30 16:48:54 +01:00
committed by GitHub
parent d6f511f053
commit e860dbecc0
+2 -2
View File
@@ -6,7 +6,7 @@ from typing import Any, override
from directv import DIRECTV, DIRECTVError
from homeassistant.components.remote import ATTR_NUM_REPEATS, RemoteEntity
from homeassistant.components.remote import RemoteEntity, RemoteServiceArgument
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import HomeAssistantError
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
@@ -98,7 +98,7 @@ class DIRECTVRemote(DIRECTVEntity, RemoteEntity):
blue, chanup, chandown, prev, 0, 1, 2, 3, 4, 5,
6, 7, 8, 9, dash, enter
"""
num_repeats = kwargs[ATTR_NUM_REPEATS]
num_repeats = kwargs[RemoteServiceArgument.NUM_REPEATS]
for _ in range(num_repeats):
for single_command in command: