Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions homeassistant/components/flunearyou/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from homeassistant.config_entries import SOURCE_IMPORT
from homeassistant.const import CONF_LATITUDE, CONF_LONGITUDE
from homeassistant.core import callback
from homeassistant.exceptions import ConfigEntryNotReady
from homeassistant.helpers import aiohttp_client, config_validation as cv
from homeassistant.helpers.dispatcher import async_dispatcher_send
from homeassistant.helpers.event import async_track_time_interval
Expand Down Expand Up @@ -90,13 +89,7 @@ async def async_setup_entry(hass, config_entry):
config_entry.data.get(CONF_LATITUDE, hass.config.latitude),
config_entry.data.get(CONF_LONGITUDE, hass.config.longitude),
)

try:
await fny.async_update()
except FluNearYouError as err:
LOGGER.error("Error while setting up integration: %s", err)
raise ConfigEntryNotReady

await fny.async_update()
hass.data[DOMAIN][DATA_CLIENT][config_entry.entry_id] = fny

hass.async_create_task(
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/flunearyou/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ async def async_step_user(self, user_input=None):
user_input[CONF_LATITUDE], user_input[CONF_LONGITUDE]
)
except FluNearYouError as err:
LOGGER.error("Error while setting up integration: %s", err)
LOGGER.error("Error while configuring integration: %s", err)
return self.async_show_form(
step_id="user", errors={"base": "general_error"}
)
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/flunearyou/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import logging

DOMAIN = "flunearyou"
LOGGER = logging.getLogger("homeassistant.components.flunearyou")
LOGGER = logging.getLogger(__package__)

DATA_CLIENT = "client"

Expand Down