mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 04:35:11 +02:00
Cast displaytime to int for JSON RPC (#21649)
This commit is contained in:
committed by
Pascal Vizeli
parent
72b6e80d02
commit
158e25562b
@@ -90,7 +90,7 @@ class KodiNotificationService(BaseNotificationService):
|
||||
try:
|
||||
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")
|
||||
title = kwargs.get(ATTR_TITLE, ATTR_TITLE_DEFAULT)
|
||||
await self._server.GUI.ShowNotification(
|
||||
|
Reference in New Issue
Block a user