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

Add get_attributes parameter to JOIN the attributes table to requests #147

Merged
merged 1 commit into from
Oct 23, 2022

Conversation

charlesbaynham
Copy link
Contributor

@charlesbaynham charlesbaynham commented Oct 23, 2022

The database structure has changed in HA so that attributes are now stored in a separate table. This PR adds a parameter "get_attributes" to data retrieving methods which performs a LEFT JOIN to also retrieve attributes for states, if requested.

@robmarkcole
Copy link
Owner

robmarkcole commented Oct 23, 2022

nice! @charlesbaynham I assume you are at NPL? Small world, I am just down the road in new malden

@robmarkcole robmarkcole merged commit 0b62b83 into robmarkcole:master Oct 23, 2022
@charlesbaynham charlesbaynham deleted the join-attributes branch November 2, 2022 13:34
@charlesbaynham
Copy link
Contributor Author

Huh, small world indeed! Yes I was at NPL, but I've moved to Imperial now: I should probably update my profile :) Looking at your profile, I might see you around - the London physics community isn't too big!

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.

2 participants