Move imports in season component (#27358)

This commit is contained in:
Quentame authored and Paulus Schoutsen committed 2019-10-10 00:21:18 -07:00
1 parent a2591e696c
commit 549c79b6ce
1 file changed
+1 -1
+1 -1
View File
@@ -2,6 +2,7 @@
import logging
from datetime import datetime
import ephem
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
@@ -67,7 +68,6 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
def get_season(date, hemisphere, season_tracking_type):
"""Calculate the current season."""
import ephem
if hemisphere == "equator":
return None