8000 device_tracker.see should not call async methods by balloob · Pull Request #4377 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

device_tracker.see should not call async methods #4377

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

Merged
merged 1 commit into from
Nov 15, 2016

Conversation

balloob
Copy link
Member
@balloob balloob commented Nov 14, 2016

Description:
The device_tracker see method that is passed into platforms is not async friendly. However it was making 1 call to a method that was async. This PR fixes it.

Reported by @bbangert on Gitter. http://paste.ofcode.org/329QM5hKqd3RGCZcMq2EEBu

@mention-bot
Copy link

@balloob, thanks for your PR! By analyzing the history of the files in this pull request, we identified @lwis, @kellerza and @fabaff to be potential reviewers.

@balloob
Copy link
Member Author
balloob commented Nov 14, 2016

CC @lwis

@lwis
Copy link
Member
lwis commented Nov 14, 2016

Crap, sorry.

Curious, why didn't the test pick this up?

@balloob
Copy link
Member Author
balloob commented Nov 15, 2016

It only emits a warning, not an error.

@balloob balloob merged commit 479457d into dev Nov 15, 2016
@balloob balloob deleted the fix-device-tracker-async branch November 15, 2016 02:36
@balloob
Copy link
Member Author
balloob commented Nov 15, 2016

My bad. It is raising exceptions. But maybe that's only on certain event loops. This is a log from UV loop that did raise: http://paste.ofcode.org/9pCwKVPWQw5Ti8ymC3GqhY

@balloob
Copy link
Member Author
balloob commented Nov 15, 2016

Auch, this is actually an even bigger bug then I thought. We are firing device over the eventbus but it's not serializable as JSON so things blow up if you are using the recorder or have the web UI open.

@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0