Move imports to top for prezzibenzina (#29329)

pull/29341/head
springstan 2019-12-03 00:54:17 +01:00 committed by Martin Hjelmare
parent 9868161821
commit 372aa312e1
1 changed files with 1 additions and 1 deletions

View File

@ -3,6 +3,7 @@ import datetime as dt
from datetime import timedelta
import logging
from prezzibenzina import PrezziBenzinaPy
import voluptuous as vol
from homeassistant.const import ATTR_ATTRIBUTION, ATTR_TIME, CONF_NAME
@ -43,7 +44,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
"""Set up the PrezziBenzina sensor platform."""
from prezzibenzina import PrezziBenzinaPy
station = config[CONF_STATION]
name = config.get(CONF_NAME)