Skip to content

Conversation

@TCampmany
Copy link

@TCampmany TCampmany commented Dec 14, 2025

This PR makes the ADAPI generic so apps can declare a specialized, typed configuration model, and access validated settings while keeping the legacy dict for compatibility.

On startup, configuration is re-validated/converted into the declared model type, and mismatches are logged and prevent the app from starting (fail fast).

The same typed configuration support is propagated to the Home Assistant and MQTT APIs, with docs updated to show how to use typed app configs. config_model``args

Copy link
Contributor

@jsl12 jsl12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool! I think this will be really useful

@hugh-martin
Copy link

Nice!

Copy link
Contributor

@jsl12 jsl12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just needs to pass the tests

@TCampmany TCampmany requested a review from jsl12 December 15, 2025 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants