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

Use getSystemService extension from Core KTX #2136

Merged
merged 2 commits into from
Jan 18, 2022

Conversation

NotWoods
Copy link
Contributor

Summary

Small change to use the context.getSystemService<Type>() extension function everywhere. It helps add some consistency, reduce null bugs from missing services, and avoid bugs from using the wrong constant name.

@JBassett JBassett merged commit 26f700b into home-assistant:master Jan 18, 2022
@NotWoods NotWoods deleted the system-service-ktx branch January 18, 2022 18:50
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