[binary_sensor] Use std::array in AutorepeatFilter (#15268)

This commit is contained in:
J. Nick Koston
2026-03-29 23:50:46 +00:00
committed by GitHub
parent 29419d9d97
commit 4da7f5ecc2
3 changed files with 34 additions and 25 deletions
+2 -1
View File
@@ -255,6 +255,7 @@ async def delayed_off_filter_to_code(config, filter_id):
): cv.positive_time_period_milliseconds,
}
),
cv.Length(max=254),
),
)
async def autorepeat_filter_to_code(config, filter_id):
@@ -283,7 +284,7 @@ async def autorepeat_filter_to_code(config, filter_id):
),
)
]
var = cg.new_Pvariable(filter_id, timings)
var = cg.new_Pvariable(filter_id, cg.TemplateArguments(len(timings)), timings)
await cg.register_component(var, {})
return var