fix knx.send to not coerce floats to int
fixes #44792 also enables strings to be sentpull/44749/head
parent
efcecd24b2
commit
ac40fb53f9
|
@ -135,9 +135,7 @@ CONFIG_SCHEMA = vol.Schema(
|
|||
SERVICE_KNX_SEND_SCHEMA = vol.Schema(
|
||||
{
|
||||
vol.Required(SERVICE_KNX_ATTR_ADDRESS): cv.string,
|
||||
vol.Required(SERVICE_KNX_ATTR_PAYLOAD): vol.Any(
|
||||
cv.positive_int, [cv.positive_int]
|
||||
),
|
||||
vol.Required(SERVICE_KNX_ATTR_PAYLOAD): cv.match_all,
|
||||
vol.Optional(SERVICE_KNX_ATTR_TYPE): vol.Any(int, float, str),
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue