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

🔨 Update files by <github-actions[bot]> #452

Closed
wants to merge 1 commit into from
Closed
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: 4 additions & 5 deletions custom_components/xplora_watch/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
from types import MappingProxyType
from typing import Any

from pyxplora_api.exception_classes import Error, LoginError, PhoneOrEmailFail
from pyxplora_api.pyxplora_api_async import PyXploraApi
from pyxplora_api.status import UserContactType
import voluptuous as vol

from homeassistant import config_entries, core
from homeassistant.config_entries import ConfigEntry, OptionsFlow, OptionsFlowWithConfigEntry
from homeassistant.const import (
Expand Down Expand Up @@ -42,6 +37,10 @@
TextSelectorConfig,
TextSelectorType,
)
from pyxplora_api.exception_classes import Error, LoginError, PhoneOrEmailFail
from pyxplora_api.pyxplora_api_async import PyXploraApi
from pyxplora_api.status import UserContactType
import voluptuous as vol

from .const import (
CONF_HOME_LATITUDE,
Expand Down
3 changes: 1 addition & 2 deletions custom_components/xplora_watch/const_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

from __future__ import annotations

import voluptuous as vol

from homeassistant.const import CONF_COUNTRY_CODE, CONF_EMAIL, CONF_LANGUAGE, CONF_PASSWORD
from homeassistant.helpers.selector import (
SelectOptionDict,
Expand All @@ -14,6 +12,7 @@
TextSelectorConfig,
TextSelectorType,
)
import voluptuous as vol

from .const import CONF_PHONENUMBER, CONF_TIMEZONE, CONF_USERLANG, DEFAULT_LANGUAGE, SUPPORTED_LANGUAGES, XPLORA_USER_LANGS

Expand Down
9 changes: 4 additions & 5 deletions custom_components/xplora_watch/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@
from typing import Any

import aiohttp
from pyxplora_api.const import DEFAULT_TIMEOUT
from pyxplora_api.model import ChatsNew
from pyxplora_api.pyxplora_api_async import PyXploraApi
from pyxplora_api.status import LocationType, WatchOnlineStatus

from homeassistant.components.device_tracker.const import ATTR_BATTERY, ATTR_LOCATION_NAME
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_COUNTRY_CODE, CONF_EMAIL, CONF_LANGUAGE, CONF_PASSWORD, CONF_SCAN_INTERVAL
from homeassistant.core import HomeAssistant
from homeassistant.helpers import aiohttp_client
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
from pyxplora_api.const import DEFAULT_TIMEOUT
from pyxplora_api.model import ChatsNew
from pyxplora_api.pyxplora_api_async import PyXploraApi
from pyxplora_api.status import LocationType, WatchOnlineStatus

from .const import (
API_KEY_MAPBOX,
Expand Down
3 changes: 1 addition & 2 deletions custom_components/xplora_watch/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@

import aiofiles
from geopy import distance
from pydub import AudioSegment

from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_LATITUDE, ATTR_LONGITUDE, CONF_LANGUAGE
from homeassistant.core import HomeAssistant
from homeassistant.exceptions import HomeAssistantError
from homeassistant.loader import DATA_CUSTOM_COMPONENTS
from homeassistant.util.yaml.dumper import dump
from homeassistant.util.yaml.loader import JSON_TYPE, Secrets, parse_yaml
from pydub import AudioSegment

from .const import (
ATTR_SERVICE_DELETE_MSG,
Expand Down
5 changes: 2 additions & 3 deletions custom_components/xplora_watch/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
import logging
from typing import Any

from pyxplora_api.exception_classes import NoAdminError
import voluptuous as vol

from homeassistant.core import HomeAssistant, ServiceCall, callback
import homeassistant.helpers.config_validation as cv
from pyxplora_api.exception_classes import NoAdminError
import voluptuous as vol

from .const import (
ATTR_SERVICE_DELETE_MSG,
Expand Down
3 changes: 1 addition & 2 deletions custom_components/xplora_watch/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@
import logging
from typing import Any

from pyxplora_api.pyxplora_api_async import PyXploraApi

from homeassistant.components.switch import SwitchDeviceClass, SwitchEntity, SwitchEntityDescription
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import ATTR_ID, CONF_LANGUAGE, CONF_NAME
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from pyxplora_api.pyxplora_api_async import PyXploraApi

from .const import (
ATTR_SERVICE_USER,
Expand Down
Loading