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

Client is throwing EmptyBodyException instead of valid empty collection #4

Open
shauntarves opened this issue Jul 22, 2021 · 0 comments

Comments

@shauntarves
Copy link

When I try to call a client.get('xxx') on an object I don't have any of - say for example, on vents when I only have pucks - the client is throwing an exception rather than returning a [valid] empty list.

Is this by design or an oversight? This is particularly causing problems in a home assistant plugin that is querying all the known types and assumes an exception is failure.

It's easy to workaround, but perhaps worth rethinking.

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

No branches or pull requests

1 participant