mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Move imports to top for plant (#29543)
This commit is contained in:
parent
f3717421c0
commit
d9b52ef98c
@ -6,6 +6,7 @@ import logging
|
|||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components import group
|
from homeassistant.components import group
|
||||||
|
from homeassistant.components.recorder.models import States
|
||||||
from homeassistant.components.recorder.util import execute, session_scope
|
from homeassistant.components.recorder.util import execute, session_scope
|
||||||
from homeassistant.const import (
|
from homeassistant.const import (
|
||||||
ATTR_TEMPERATURE,
|
ATTR_TEMPERATURE,
|
||||||
@ -288,7 +289,6 @@ class Plant(Entity):
|
|||||||
|
|
||||||
This only needs to be done once during startup.
|
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)
|
start_date = datetime.now() - timedelta(days=self._conf_check_days)
|
||||||
entity_id = self._readingmap.get(READING_BRIGHTNESS)
|
entity_id = self._readingmap.get(READING_BRIGHTNESS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user