mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 00:37:13 +00:00
Restore vulcan integration (#88556)
This commit is contained in:
parent
905a0f2eb6
commit
ff93b7a01c
@ -1,12 +1,7 @@
|
|||||||
"""The Vulcan component."""
|
"""The Vulcan component."""
|
||||||
|
|
||||||
from aiohttp import ClientConnectorError
|
from aiohttp import ClientConnectorError
|
||||||
from vulcan import ( # pylint: disable=import-error
|
from vulcan import Account, Keystore, UnauthorizedCertificateException, Vulcan
|
||||||
Account,
|
|
||||||
Keystore,
|
|
||||||
UnauthorizedCertificateException,
|
|
||||||
Vulcan,
|
|
||||||
)
|
|
||||||
|
|
||||||
from homeassistant.config_entries import ConfigEntry
|
from homeassistant.config_entries import ConfigEntry
|
||||||
from homeassistant.const import Platform
|
from homeassistant.const import Platform
|
||||||
|
@ -5,7 +5,7 @@ from datetime import date, datetime, timedelta
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from aiohttp import ClientConnectorError
|
from aiohttp import ClientConnectorError
|
||||||
from vulcan import UnauthorizedCertificateException # pylint: disable=import-error
|
from vulcan import UnauthorizedCertificateException
|
||||||
|
|
||||||
from homeassistant.components.calendar import (
|
from homeassistant.components.calendar import (
|
||||||
ENTITY_ID_FORMAT,
|
ENTITY_ID_FORMAT,
|
||||||
|
@ -5,7 +5,7 @@ from typing import Any
|
|||||||
|
|
||||||
from aiohttp import ClientConnectionError
|
from aiohttp import ClientConnectionError
|
||||||
import voluptuous as vol
|
import voluptuous as vol
|
||||||
from vulcan import ( # pylint: disable=import-error
|
from vulcan import (
|
||||||
Account,
|
Account,
|
||||||
ExpiredTokenException,
|
ExpiredTokenException,
|
||||||
InvalidPINException,
|
InvalidPINException,
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
"name": "Uonet+ Vulcan",
|
"name": "Uonet+ Vulcan",
|
||||||
"codeowners": ["@Antoni-Czaplicki"],
|
"codeowners": ["@Antoni-Czaplicki"],
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"disabled": "Temporarily unblock nightly build",
|
|
||||||
"documentation": "https://www.home-assistant.io/integrations/vulcan",
|
"documentation": "https://www.home-assistant.io/integrations/vulcan",
|
||||||
"iot_class": "cloud_polling",
|
"iot_class": "cloud_polling",
|
||||||
"quality_scale": "silver",
|
"quality_scale": "silver",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
"""Support for register Vulcan account."""
|
"""Support for register Vulcan account."""
|
||||||
|
|
||||||
from vulcan import Account, Keystore # pylint: disable=import-error
|
from vulcan import Account, Keystore
|
||||||
|
|
||||||
|
|
||||||
async def register(hass, token, symbol, pin):
|
async def register(hass, token, symbol, pin):
|
||||||
|
@ -2594,6 +2594,9 @@ vsure==1.8.1
|
|||||||
# homeassistant.components.vasttrafik
|
# homeassistant.components.vasttrafik
|
||||||
vtjp==0.1.14
|
vtjp==0.1.14
|
||||||
|
|
||||||
|
# homeassistant.components.vulcan
|
||||||
|
vulcan-api==2.3.0
|
||||||
|
|
||||||
# homeassistant.components.vultr
|
# homeassistant.components.vultr
|
||||||
vultr==0.1.2
|
vultr==0.1.2
|
||||||
|
|
||||||
|
@ -1837,6 +1837,9 @@ volvooncall==0.10.2
|
|||||||
# homeassistant.components.verisure
|
# homeassistant.components.verisure
|
||||||
vsure==1.8.1
|
vsure==1.8.1
|
||||||
|
|
||||||
|
# homeassistant.components.vulcan
|
||||||
|
vulcan-api==2.3.0
|
||||||
|
|
||||||
# homeassistant.components.vultr
|
# homeassistant.components.vultr
|
||||||
vultr==0.1.2
|
vultr==0.1.2
|
||||||
|
|
||||||
|
@ -1,41 +1,33 @@
|
|||||||
"""Test the Uonet+ Vulcan config flow."""
|
"""Test the Uonet+ Vulcan config flow."""
|
||||||
# flake8: noqa
|
|
||||||
import json
|
import json
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
from unittest.mock import patch
|
from unittest.mock import patch
|
||||||
|
|
||||||
import pytest
|
from vulcan import (
|
||||||
|
Account,
|
||||||
|
ExpiredTokenException,
|
||||||
|
InvalidPINException,
|
||||||
|
InvalidSymbolException,
|
||||||
|
InvalidTokenException,
|
||||||
|
UnauthorizedCertificateException,
|
||||||
|
)
|
||||||
|
from vulcan.model import Student
|
||||||
|
|
||||||
from homeassistant import config_entries, data_entry_flow
|
from homeassistant import config_entries, data_entry_flow
|
||||||
|
from homeassistant.components.vulcan import config_flow, const, register
|
||||||
# from homeassistant.components.vulcan import config_flow, const, register
|
from homeassistant.components.vulcan.config_flow import ClientConnectionError, Keystore
|
||||||
# from homeassistant.components.vulcan.config_flow import ClientConnectionError, Keystore
|
|
||||||
from homeassistant.const import CONF_PIN, CONF_REGION, CONF_TOKEN
|
from homeassistant.const import CONF_PIN, CONF_REGION, CONF_TOKEN
|
||||||
from homeassistant.core import HomeAssistant
|
from homeassistant.core import HomeAssistant
|
||||||
|
|
||||||
from tests.common import MockConfigEntry, load_fixture
|
from tests.common import MockConfigEntry, load_fixture
|
||||||
|
|
||||||
# from vulcan import (
|
fake_keystore = Keystore("", "", "", "", "")
|
||||||
# Account,
|
fake_account = Account(
|
||||||
# ExpiredTokenException,
|
login_id=1,
|
||||||
# InvalidPINException,
|
user_login="example@example.com",
|
||||||
# InvalidSymbolException,
|
user_name="example@example.com",
|
||||||
# InvalidTokenException,
|
rest_url="rest_url",
|
||||||
# UnauthorizedCertificateException,
|
)
|
||||||
# )
|
|
||||||
# from vulcan.model import Student
|
|
||||||
|
|
||||||
|
|
||||||
pytestmark = pytest.mark.skip
|
|
||||||
|
|
||||||
|
|
||||||
# fake_keystore = Keystore("", "", "", "", "")
|
|
||||||
# fake_account = Account(
|
|
||||||
# login_id=1,
|
|
||||||
# user_login="example@example.com",
|
|
||||||
# user_name="example@example.com",
|
|
||||||
# rest_url="rest_url",
|
|
||||||
# )
|
|
||||||
|
|
||||||
|
|
||||||
async def test_show_form(hass: HomeAssistant) -> None:
|
async def test_show_form(hass: HomeAssistant) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user