Move imports in github component (#27406)

This commit is contained in:
Markus Nigbur authored and Paulus Schoutsen committed 2019-10-10 11:16:19 -07:00
1 parent 99885b9acf
commit 13ac6ac315
1 file changed
+1 -2
+1 -2
View File
@@ -1,6 +1,7 @@
"""Support for GitHub."""
from datetime import timedelta
import logging
import github
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
@@ -148,8 +149,6 @@ class GitHubData:
def __init__(self, repository, access_token=None, server_url=None):
"""Set up GitHub."""
import github
self._github = github
self.setup_error = False