mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Move imports in github component (#27406)
This commit is contained in:
parent
99885b9acf
commit
13ac6ac315
@ -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…
x
Reference in New Issue
Block a user