Skip to content

Commit

Permalink
Update formatted
Browse files Browse the repository at this point in the history
  • Loading branch information
djtimca committed Dec 4, 2020
2 parents a2c8f77 + ed4f3a6 commit c0031ac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
6 changes: 2 additions & 4 deletions custom_components/googlewifi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from datetime import timedelta

import voluptuous as vol
from googlewifi import GoogleWifi, GoogleWifiException, GoogleHomeIgnoreDevice
from googlewifi import GoogleHomeIgnoreDevice, GoogleWifi, GoogleWifiException
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_SCAN_INTERVAL
from homeassistant.core import CoreState, HomeAssistant, callback
Expand Down Expand Up @@ -209,9 +209,7 @@ async def _async_update_data(self):
session = aiohttp_client.async_create_clientsession(self.hass)
self.api = GoogleWifi(refresh_token=self.refresh_token, session=session)
except GoogleHomeIgnoreDevice as error:
raise UpdateFailed(
f"Error connecting to GoogleWifi: {error}"
) from error
raise UpdateFailed(f"Error connecting to GoogleWifi: {error}") from error
except ConnectionError as error:
raise PlatformNotReady(
f"Error connecting to GoogleWifi: {error}"
Expand Down
1 change: 0 additions & 1 deletion custom_components/googlewifi/device_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
ATTR_IDENTIFIERS,
ATTR_MANUFACTURER,
ATTR_MODEL,
ATTR_CONNECTIONS,
COORDINATOR,
DEFAULT_ICON,
DEV_CLIENT_MODEL,
Expand Down
4 changes: 1 addition & 3 deletions custom_components/googlewifi/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
from homeassistant.helpers import config_validation as cv
from homeassistant.helpers import entity_platform
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC
from homeassistant.util.dt import as_local, parse_datetime, as_timestamp
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC
from homeassistant.util.dt import as_local, as_timestamp, parse_datetime

from . import GoogleWifiEntity, GoogleWiFiUpdater
from .const import (
Expand All @@ -18,7 +17,6 @@
ATTR_MODEL,
CONF_SPEED_UNITS,
COORDINATOR,
CONF_SPEED_UNITS,
DEFAULT_ICON,
DEV_CLIENT_MODEL,
DOMAIN,
Expand Down

0 comments on commit c0031ac

Please sign in to comment.