Move imports to top for plant (#29543)

pull/29570/head
springstan 2019-12-06 15:00:54 +01:00 committed by Martin Hjelmare
parent f3717421c0
commit d9b52ef98c
1 changed files with 1 additions and 1 deletions

View File

@ -6,6 +6,7 @@ import logging
import voluptuous as vol
from homeassistant.components import group
from homeassistant.components.recorder.models import States
from homeassistant.components.recorder.util import execute, session_scope
from homeassistant.const import (
ATTR_TEMPERATURE,
@ -288,7 +289,6 @@ class Plant(Entity):
This only needs to be done once during startup.
"""
from homeassistant.components.recorder.models import States
start_date = datetime.now() - timedelta(days=self._conf_check_days)
entity_id = self._readingmap.get(READING_BRIGHTNESS)