Skip to content

Optional entity fields are prefilled with non-existent default entities #2

Description

@DJ3vil

Description

Some optional entity selectors are automatically populated with default values and saved even when the user never selected them.

Example from my config:

pump_switch: switch.whirlpool

The documentation says the pump switch is optional and if omitted the integration should use the main switch.

However, switch.whirlpool was stored automatically although no such entity exists in my installation.

Expected

Optional entity fields should remain empty unless the user explicitly selects an entity.

Actual

Default entity IDs are prefilled and persisted, which can lead to incorrect status reporting and bypass intended fallback behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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