Move imports in smappee component (#27943)

* move imports in smappee component

* fix: unneeded object inheritance
This commit is contained in:
Michał Mrozek 2019-10-20 10:05:11 +02:00 committed by Fabian Affolter
parent 2c00ff7e52
commit 2706e3289d

View File

@ -1,13 +1,16 @@
"""Support for Smappee energy monitor.""" """Support for Smappee energy monitor."""
import logging
from datetime import datetime, timedelta from datetime import datetime, timedelta
import logging
import re import re
import voluptuous as vol
from requests.exceptions import RequestException from requests.exceptions import RequestException
from homeassistant.const import CONF_USERNAME, CONF_PASSWORD, CONF_HOST import smappy
from homeassistant.util import Throttle import voluptuous as vol
from homeassistant.helpers.discovery import load_platform
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_USERNAME
import homeassistant.helpers.config_validation as cv import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.discovery import load_platform
from homeassistant.util import Throttle
_LOGGER = logging.getLogger(__name__) _LOGGER = logging.getLogger(__name__)
@ -72,7 +75,6 @@ class Smappee:
self, client_id, client_secret, username, password, host, host_password self, client_id, client_secret, username, password, host, host_password
): ):
"""Initialize the data.""" """Initialize the data."""
import smappy
self._remote_active = False self._remote_active = False
self._local_active = False self._local_active = False