8000 Move imports to top for nello by springstan · Pull Request #29361 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Move imports to top for nello #29361

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions homeassistant/components/nello/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
from itertools import filterfalse
import logging

from pynello.private import Nello
import voluptuous as vol

import homeassistant.helpers.config_validation as cv
from homeassistant.components.lock import LockDevice, PLATFORM_SCHEMA
from homeassistant.components.lock import PLATFORM_SCHEMA, LockDevice
from homeassistant.const import CONF_PASSWORD, CONF_USERNAME
import homeassistant.helpers.config_validation as cv

_LOGGER = logging.getLogger(__name__)

Expand All @@ -21,7 +22,6 @@

def setup_platform(hass, config, add_entities, discovery_info=None):
"""Set up the Nello lock platform."""
from pynello.private import Nello

nello = Nello(config.get(CONF_USERNAME), config.get(CONF_PASSWORD))
add_entities([NelloLock(lock) for lock in nello.locations], True)
Expand Down
0