Skip to content

Avoid homekit controller calling async code in sync context#23235

Merged
awarecan merged 1 commit intohome-assistant:devfrom
Jc2k:homekit_review_feedback_2
Apr 19, 2019
Merged

Avoid homekit controller calling async code in sync context#23235
awarecan merged 1 commit intohome-assistant:devfrom
Jc2k:homekit_review_feedback_2

Conversation

@Jc2k
Copy link
Copy Markdown
Member

@Jc2k Jc2k commented Apr 19, 2019

Description:

More post-merge feedback from @MartinHjelmare for #23191.

This avoids calling the async methods on the storage in a sync context. This will get simpler in 0.94 as config flow gets rid of sync variant and gets rid of sync add_entities.

Copy link
Copy Markdown
Member

@MartinHjelmare MartinHjelmare left a comment

Choose a reason for hiding this comment

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

Looks good!

@MartinHjelmare
Copy link
Copy Markdown
Member

Can be merged when build passes.

@MartinHjelmare MartinHjelmare changed the title Avoid calling async code in sync context Avoid homekitccontroller calling async code in sync context Apr 19, 2019
@MartinHjelmare MartinHjelmare changed the title Avoid homekitccontroller calling async code in sync context Avoid homekit controller calling async code in sync context Apr 19, 2019
@awarecan awarecan added this to the 0.92.0 milestone Apr 19, 2019
@awarecan awarecan merged commit e7054e0 into home-assistant:dev Apr 19, 2019
@MartinHjelmare MartinHjelmare removed this from the 0.92.0 milestone Apr 19, 2019
@MartinHjelmare
Copy link
Copy Markdown
Member

The previous PR this PR is fixing is not going into 0.92.

@awarecan
Copy link
Copy Markdown
Contributor

Shoot, cache issue.

@Jc2k Jc2k deleted the homekit_review_feedback_2 branch April 19, 2019 19:59
@balloob balloob mentioned this pull request May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants