Move imports to top for familyhub (#29427)
This commit is contained in:
parent
4b6a2496c7
commit
af18c668d2
1 changed files with 2 additions and 2 deletions
|
@ -1,9 +1,10 @@
|
||||||
"""Family Hub camera for Samsung Refrigerators."""
|
"""Family Hub camera for Samsung Refrigerators."""
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
|
from pyfamilyhublocal import FamilyHubCam
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
|
|
||||||
from homeassistant.components.camera import Camera, PLATFORM_SCHEMA
|
from homeassistant.components.camera import PLATFORM_SCHEMA, Camera
|
||||||
from homeassistant.const import CONF_IP_ADDRESS, CONF_NAME
|
from homeassistant.const import CONF_IP_ADDRESS, CONF_NAME
|
||||||
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
from homeassistant.helpers.aiohttp_client import async_get_clientsession
|
||||||
import homeassistant.helpers.config_validation as cv
|
import homeassistant.helpers.config_validation as cv
|
||||||
|
@ -22,7 +23,6 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
||||||
|
|
||||||
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
async def async_setup_platform(hass, config, async_add_entities, discovery_info=None):
|
||||||
"""Set up the Family Hub Camera."""
|
"""Set up the Family Hub Camera."""
|
||||||
from pyfamilyhublocal import FamilyHubCam
|
|
||||||
|
|
||||||
address = config.get(CONF_IP_ADDRESS)
|
address = config.get(CONF_IP_ADDRESS)
|
||||||
name = config.get(CONF_NAME)
|
name = config.get(CONF_NAME)
|
||||||
|
|
Loading…
Add table
Reference in a new issue