Cast lametric cycles parameter to int (#19370)

This commit is contained in:
jumpkick authored and Martin Hjelmare committed 2018-12-18 00:14:55 +01:00
1 parent d270d52cb5
commit f1005d37a7
1 file changed
+1 -1
+1 -1
View File
@@ -85,7 +85,7 @@ class LaMetricNotificationService(BaseNotificationService):
_LOGGER.error("Sound ID %s unknown, ignoring",
data["sound"])
if "cycles" in data:
cycles = data['cycles']
cycles = int(data['cycles'])
if "priority" in data:
if data['priority'] in AVAILABLE_PRIORITIES:
priority = data['priority']