Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 7, 2023
1 parent 15fca5d commit 03f3082
Show file tree
Hide file tree
Showing 11 changed files with 403 additions and 408 deletions.
3 changes: 1 addition & 2 deletions custom_components/ecotrend_ista/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@

import logging

import voluptuous as vol

from homeassistant import config_entries
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, Platform
from homeassistant.core import HomeAssistant
from homeassistant.helpers.typing import ConfigType
import voluptuous as vol

from .const import DATA_HASS_CONFIG, DOMAIN
from .const_schema import DEFAULT_DATA_SCHEMA
Expand Down
74 changes: 37 additions & 37 deletions custom_components/ecotrend_ista/account_de_url.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
{
"firstName": "Max",
"lastName": "Istamann",
"email": "[email protected]",
"keycloakId": null,
"country": "DE",
"locale": "de_DE",
"authcode": null,
"tos": "10.0",
"tosUpdated": "30.08.2021",
"privacy": null,
"mobileNumber": "123456789",
"transitionMobileNumber": "",
"unconfirmedPhoneNumber": null,
"password": null,
"enabled": true,
"consumptionUnitUuids": [
"26e93f1a-c828-11ea-87d0-0242ac130003"
],
"residentTimeRangeUuids": [
"26e93f1a-c828-11ea-87d0-0242ac130003"
],
"ads": true,
"marketing": true,
"fcmToken": "null",
"betaPhase": null,
"notificationMethod": "none",
"emailConfirmed": false,
"isDemo": true,
"userGroup": "demo",
"mobileLoginStatus": "pending",
"residentAndConsumptionUuidsMap": {
"26e93f1a-c828-11ea-87d0-0242ac130003": "26e93f1a-c828-11ea-87d0-0242ac130003"
},
"activeConsumptionUnit": "26e93f1a-c828-11ea-87d0-0242ac130003",
"supportCode": "HFJYYWJX2",
"notificationMethodEmailConfirmed": false
}
"activeConsumptionUnit": "26e93f1a-c828-11ea-87d0-0242ac130003",
"ads": true,
"authcode": null,
"betaPhase": null,
"consumptionUnitUuids": [
"26e93f1a-c828-11ea-87d0-0242ac130003"
],
"country": "DE",
"email": "[email protected]",
"emailConfirmed": false,
"enabled": true,
"fcmToken": "null",
"firstName": "Max",
"isDemo": true,
"keycloakId": null,
"lastName": "Istamann",
"locale": "de_DE",
"marketing": true,
"mobileLoginStatus": "pending",
"mobileNumber": "123456789",
"notificationMethod": "none",
"notificationMethodEmailConfirmed": false,
"password": null,
"privacy": null,
"residentAndConsumptionUuidsMap": {
"26e93f1a-c828-11ea-87d0-0242ac130003": "26e93f1a-c828-11ea-87d0-0242ac130003"
},
"residentTimeRangeUuids": [
"26e93f1a-c828-11ea-87d0-0242ac130003"
],
"supportCode": "HFJYYWJX2",
"tos": "10.0",
"tosUpdated": "30.08.2021",
"transitionMobileNumber": "",
"unconfirmedPhoneNumber": null,
"userGroup": "demo"
}
9 changes: 4 additions & 5 deletions custom_components/ecotrend_ista/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@
import logging
from typing import Any

from pyecotrend_ista.exception_classes import LoginError
from pyecotrend_ista.pyecotrend_ista import PyEcotrendIsta
import requests
import voluptuous as vol

from homeassistant import config_entries, core
from homeassistant.const import CONF_EMAIL, CONF_PASSWORD
from homeassistant.data_entry_flow import FlowResult
Expand All @@ -18,6 +13,10 @@
NumberSelectorConfig,
NumberSelectorMode,
)
from pyecotrend_ista.exception_classes import LoginError
from pyecotrend_ista.pyecotrend_ista import PyEcotrendIsta
import requests
import voluptuous as vol

from .const import CONF_MFA, CONF_UPDATE_INTERVAL, CONF_URL, DOMAIN, MANUFACTURER
from .const_schema import DATA_SCHEMA_EMAIL, URL_SELECTOR
Expand Down
3 changes: 1 addition & 2 deletions custom_components/ecotrend_ista/const_schema.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
"""Const schema for ista EcoTrend Version 2."""
from __future__ import annotations

import voluptuous as vol

from homeassistant.const import CONF_EMAIL, CONF_PASSWORD, CONF_SCAN_INTERVAL
from homeassistant.helpers.selector import (
NumberSelector,
Expand All @@ -16,6 +14,7 @@
TextSelectorConfig,
TextSelectorType,
)
import voluptuous as vol

from .const import (
CONF_MFA,
Expand Down
7 changes: 3 additions & 4 deletions custom_components/ecotrend_ista/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@
import os
from typing import Any

from pyecotrend_ista.helper_object_de import CustomRaw
from pyecotrend_ista.pyecotrend_ista import PyEcotrendIsta
import requests

from homeassistant.config_entries import ConfigEntry
from homeassistant.core import HomeAssistant
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator
from pyecotrend_ista.helper_object_de import CustomRaw
from pyecotrend_ista.pyecotrend_ista import PyEcotrendIsta
import requests

from .config_flow import login_account
from .const import CONF_UPDATE_INTERVAL, DOMAIN
Expand Down
Loading

0 comments on commit 03f3082

Please sign in to comment.