mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 20:25:07 +02:00
fix knx.send to not coerce floats to int
fixes #44792 also enables strings to be sent
This commit is contained in:
@@ -135,9 +135,7 @@ CONFIG_SCHEMA = vol.Schema(
|
|||||||
SERVICE_KNX_SEND_SCHEMA = vol.Schema(
|
SERVICE_KNX_SEND_SCHEMA = vol.Schema(
|
||||||
{
|
{
|
||||||
vol.Required(SERVICE_KNX_ATTR_ADDRESS): cv.string,
|
vol.Required(SERVICE_KNX_ATTR_ADDRESS): cv.string,
|
||||||
vol.Required(SERVICE_KNX_ATTR_PAYLOAD): vol.Any(
|
vol.Required(SERVICE_KNX_ATTR_PAYLOAD): cv.match_all,
|
||||||
cv.positive_int, [cv.positive_int]
|
|
||||||
),
|
|
||||||
vol.Optional(SERVICE_KNX_ATTR_TYPE): vol.Any(int, float, str),
|
vol.Optional(SERVICE_KNX_ATTR_TYPE): vol.Any(int, float, str),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user