Skip to content

Remove global from ZHA application controller#19557

Merged
MartinHjelmare merged 3 commits intohome-assistant:devfrom
dmulcahey:dm/zha-application-controller-global
Dec 25, 2018
Merged

Remove global from ZHA application controller#19557
MartinHjelmare merged 3 commits intohome-assistant:devfrom
dmulcahey:dm/zha-application-controller-global

Conversation

@dmulcahey
Copy link
Copy Markdown
Contributor

Remove global and stash ZHA's application controller in hass.data.

@MartinHjelmare Let me know if this isn't what you were thinking.

@ghost ghost added the in progress label Dec 24, 2018
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.

Don't we need to access the controller from any other modules?

@dmulcahey
Copy link
Copy Markdown
Contributor Author

Don't we need to access the controller from any other modules?

@MartinHjelmare Nope. Everything is handled through events on the listener.

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.

Nice!

@MartinHjelmare MartinHjelmare merged commit bef85ec into home-assistant:dev Dec 25, 2018
@ghost ghost removed the in progress label Dec 25, 2018
dshokouhi pushed a commit to dshokouhi/home-assistant that referenced this pull request Dec 25, 2018
* remove global from application controller per request

* remove unneeded line

* don't store controller application in hass.data - review comment
@dmulcahey dmulcahey deleted the dm/zha-application-controller-global branch December 26, 2018 12:10
@balloob balloob mentioned this pull request Jan 10, 2019
alandtse pushed a commit to alandtse/home-assistant that referenced this pull request Feb 12, 2019
* remove global from application controller per request

* remove unneeded line

* don't store controller application in hass.data - review comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed integration: zha small-pr PRs with less than 30 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants