Skip to content
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

Move imports to top for zabbix #29195

Merged
merged 1 commit into from
Nov 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions homeassistant/components/zabbix/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
import logging
from urllib.parse import urljoin

from pyzabbix import ZabbixAPI, ZabbixAPIException
import voluptuous as vol

from homeassistant.const import (
CONF_PATH,
CONF_HOST,
CONF_SSL,
CONF_PASSWORD,
CONF_PATH,
CONF_SSL,
CONF_USERNAME,
)
import homeassistant.helpers.config_validation as cv
Expand Down Expand Up @@ -37,7 +38,6 @@

def setup(hass, config):
"""Set up the Zabbix component."""
from pyzabbix import ZabbixAPI, ZabbixAPIException

conf = config[DOMAIN]
if conf[CONF_SSL]:
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/zabbix/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import voluptuous as vol

from homeassistant.components import zabbix
import homeassistant.helpers.config_validation as cv
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_NAME
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.entity import Entity

_LOGGER = logging.getLogger(__name__)
Expand Down