1
0
mirror of https://github.com/esphome/esphome.git synced 2025-01-31 10:10:56 +00:00

Remove whitespace

This commit is contained in:
lastradanet 2024-12-20 21:41:29 -05:00 committed by GitHub
parent 1b49263a73
commit 9584ff4dc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -37,14 +37,14 @@ def check_timeout(value):
if value.total_seconds > 60:
raise cv.Invalid("Maximum timeout can not be greater then 60 seconds")
return value
def check_timing_budget(value):
value = cv.positive_time_period_microseconds(value)
if value.total_microseconds < 17000 or value.total_microseconds > 4294967295:
raise cv.Invalid("Timing budget must be between 17000us and 4294967295us")
return value
CONFIG_SCHEMA = cv.All(
sensor.sensor_schema(