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

This commit is contained in:
Jonathan Swoboda authored and GitHub committed 2026-04-06 14:14:17 -10:00
1 parent 017af24c22
commit d9da91efbe
1 file changed
+1 -1
+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))