Skip to content

Component updates break existing configs #95

@miguelangel-nubla

Description

@miguelangel-nubla

I don't know if you know about the following since it is in dev:

If I upgrade the device from esphome-tesla-ble/dev, it sucessfully compiles and works for a minute but then the device crashes and reboots without a helpful log message.

The culprit seems changes like https://github.com/PedroKTFC/esphome-tesla-ble/commit/8341a6f0417ef0692e474abde30032882d804976 in the config for the component, and me not updating the client.yml with the new sensors added.

I believe the internal component code just tries to write the state to those missing sensors and crashes.

This should not happen because the user is expected to only include yaml config for the sensors needed.
The component should check if the sensor is configured before trying to write to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions