fix knx.send to not coerce floats to int

fixes #44792
also enables strings to be sent
pull/44749/head
Matthias Alphart 2021-01-03 21:25:28 +01:00 committed by GitHub
parent efcecd24b2
commit ac40fb53f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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),
}
)