mirror of
https://github.com/home-assistant/core.git
synced 2026-12-02 11:33:11 -04:00
Use the action field enums in nfandroidtv (#196040)
This commit is contained in:
@@ -15,12 +15,11 @@ from homeassistant.components.media_source import (
|
||||
async_resolve_media,
|
||||
)
|
||||
from homeassistant.components.notify import (
|
||||
ATTR_DATA,
|
||||
ATTR_TITLE,
|
||||
ATTR_TITLE_DEFAULT,
|
||||
BaseNotificationService,
|
||||
NotifyEntity,
|
||||
NotifyEntityFeature,
|
||||
NotifyServiceArgument,
|
||||
)
|
||||
from homeassistant.const import CONF_HOST
|
||||
from homeassistant.core import HomeAssistant
|
||||
@@ -216,8 +215,8 @@ class NFAndroidTVNotificationService(BaseNotificationService):
|
||||
translation_placeholders={"host": self.host},
|
||||
) from err
|
||||
|
||||
data: dict | None = kwargs.get(ATTR_DATA)
|
||||
title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
|
||||
data: dict | None = kwargs.get(NotifyServiceArgument.DATA)
|
||||
title = kwargs.get(NotifyServiceArgument.TITLE, ATTR_TITLE_DEFAULT)
|
||||
duration = None
|
||||
fontsize = None
|
||||
position = None
|
||||
|
||||
Reference in New Issue
Block a user