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

identify_denonavr_receivers() returning None #34

Closed
trozen opened this issue Oct 30, 2017 · 2 comments
Closed

identify_denonavr_receivers() returning None #34

trozen opened this issue Oct 30, 2017 · 2 comments

Comments

@trozen
Copy link
Contributor

trozen commented Oct 30, 2017

Not sure what is the point of this:

    if receivers:
        return receivers
    else:
        return None

but it doesn't seem to be the "pythonic" way. And because of this you can't do:

for denon in denonavr.discover():
    ...

Because NoneType is not iterable.

@ol-iver
Copy link
Owner

ol-iver commented Dec 3, 2017

Changed in version 0.5.5.

@ol-iver ol-iver closed this as completed Dec 3, 2017
@trozen
Copy link
Contributor Author

trozen commented Dec 4, 2017

Thanks!

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

2 participants