Move imports in github component (#27406)
This commit is contained in:
parent
99885b9acf
commit
13ac6ac315
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue