mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 08:47:10 +00:00
Cast displaytime to int for JSON RPC (#21649)
This commit is contained in:
parent
cca8d4c951
commit
a382ba731d
@ -90,7 +90,7 @@ class KodiNotificationService(BaseNotificationService):
|
|||||||
try:
|
try:
|
||||||
data = kwargs.get(ATTR_DATA) or {}
|
data = kwargs.get(ATTR_DATA) or {}
|
||||||
|
|
||||||
displaytime = data.get(ATTR_DISPLAYTIME, 10000)
|
displaytime = int(data.get(ATTR_DISPLAYTIME, 10000))
|
||||||
icon = data.get(ATTR_ICON, "info")
|
icon = data.get(ATTR_ICON, "info")
|
||||||
title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
|
title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
|
||||||
await self._server.GUI.ShowNotification(
|
await self._server.GUI.ShowNotification(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user