mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 04:37:06 +00:00
Move imports in smappee component (#27943)
* move imports in smappee component * fix: unneeded object inheritance
This commit is contained in:
parent
2c00ff7e52
commit
2706e3289d
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user