Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store product key in config entry #170

Merged
merged 1 commit into from
Nov 19, 2020
Merged

Store product key in config entry #170

merged 1 commit into from
Nov 19, 2020

Conversation

postlund
Copy link
Collaborator

Store the device product key when creating a config entry. It will be automatically updated by the discovery in case it's missing in an existing config entry (e.g. prior to this PR or for YAML config). When available, it be presented as the device model in the device registry.

I'm preparing a bit for the future "device database"-thing I've been talking about. It's a bit in the future, but I might as well do small tidbits when I get a feeling.

@postlund postlund added the enhancement New feature or request label Nov 18, 2020
Copy link
Collaborator

@ultratoto14 ultratoto14 left a comment

Choose a reason for hiding this comment

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

Code ok, tested with yaml and config_flow, product key is properly populated.

@postlund postlund merged commit 27af622 into master Nov 19, 2020
@postlund postlund deleted the product_key branch November 19, 2020 09:13
PaulCavill pushed a commit to PaulCavill/localtuya that referenced this pull request May 10, 2024
* Attempt to fix max header length.

* Refactor main config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants