mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 19:57:03 -04:00
Use the action field enums in directv (#195592)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user