mirror of
https://github.com/esphome/esphome.git
synced 2026-05-13 12:00:47 +08:00
[bl0940] Fix restore_value reading from wrong config dict (#15492)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user