mirror of
https://github.com/home-assistant/core
synced 2024-09-12 15:16:21 +02:00
Cast lametric cycles parameter to int (#19370)
This commit is contained in:
parent
d270d52cb5
commit
f1005d37a7
@ -85,7 +85,7 @@ class LaMetricNotificationService(BaseNotificationService):
|
|||||||
_LOGGER.error("Sound ID %s unknown, ignoring",
|
_LOGGER.error("Sound ID %s unknown, ignoring",
|
||||||
data["sound"])
|
data["sound"])
|
||||||
if "cycles" in data:
|
if "cycles" in data:
|
||||||
cycles = data['cycles']
|
cycles = int(data['cycles'])
|
||||||
if "priority" in data:
|
if "priority" in data:
|
||||||
if data['priority'] in AVAILABLE_PRIORITIES:
|
if data['priority'] in AVAILABLE_PRIORITIES:
|
||||||
priority = data['priority']
|
priority = data['priority']
|
||||||
|
Loading…
Reference in New Issue
Block a user