mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Move imports in season component (#27358)
This commit is contained in:
parent
a2591e696c
commit
549c79b6ce
@ -2,6 +2,7 @@
|
|||||||
import logging
|
import logging
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
import ephem
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.sensor import PLATFORM_SCHEMA
|
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):
|
def get_season(date, hemisphere, season_tracking_type):
|
||||||
"""Calculate the current season."""
|
"""Calculate the current season."""
|
||||||
import ephem
|
|
||||||
|
|
||||||
if hemisphere == "equator":
|
if hemisphere == "equator":
|
||||||
return None
|
return None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user