[bl0940] Fix restore_value reading from wrong config dict (#15492)

This commit is contained in:
Jonathan Swoboda
2026-04-06 20:14:17 -04:00
committed by GitHub
parent 017af24c22
commit d9da91efbe
+1 -1
View File
@@ -89,6 +89,6 @@ async def to_code(config):
)
await cg.register_component(var, conf)
if restore_value := config.get(CONF_RESTORE_VALUE):
if restore_value := conf.get(CONF_RESTORE_VALUE):
cg.add(var.set_restore_value(restore_value))
cg.add(getattr(bl0940, setter_method)(var))