dallas: limit addresses to 64 bits (#5413)

This commit is contained in:
Odd Stråbø 2023-09-24 23:15:28 +02:00 committed by Jesse Hills
parent a42788812e
commit 33e2aa341e
No known key found for this signature in database
GPG Key ID: BEAAE804EFD8E83A

View File

@ -24,7 +24,7 @@ CONFIG_SCHEMA = cv.All(
).extend( ).extend(
{ {
cv.GenerateID(CONF_DALLAS_ID): cv.use_id(DallasComponent), cv.GenerateID(CONF_DALLAS_ID): cv.use_id(DallasComponent),
cv.Optional(CONF_ADDRESS): cv.hex_int, cv.Optional(CONF_ADDRESS): cv.hex_uint64_t,
cv.Optional(CONF_INDEX): cv.positive_int, cv.Optional(CONF_INDEX): cv.positive_int,
cv.Optional(CONF_RESOLUTION, default=12): cv.int_range(min=9, max=12), cv.Optional(CONF_RESOLUTION, default=12): cv.int_range(min=9, max=12),
} }