mirror of
https://github.com/home-assistant/core.git
synced 2025-06-25 01:21:51 +02:00
Restore vulcan integration (#88556)
This commit is contained in:
@ -1,12 +1,7 @@
|
||||
"""The Vulcan component."""
|
||||
|
||||
from aiohttp import ClientConnectorError
|
||||
from vulcan import ( # pylint: disable=import-error
|
||||
Account,
|
||||
Keystore,
|
||||
UnauthorizedCertificateException,
|
||||
Vulcan,
|
||||
)
|
||||
from vulcan import Account, Keystore, UnauthorizedCertificateException, Vulcan
|
||||
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import Platform
|
||||
|
@ -5,7 +5,7 @@ from datetime import date, datetime, timedelta
|
||||
import logging
|
||||
|
||||
from aiohttp import ClientConnectorError
|
||||
from vulcan import UnauthorizedCertificateException # pylint: disable=import-error
|
||||
from vulcan import UnauthorizedCertificateException
|
||||
|
||||
from homeassistant.components.calendar import (
|
||||
ENTITY_ID_FORMAT,
|
||||
|
@ -5,7 +5,7 @@ from typing import Any
|
||||
|
||||
from aiohttp import ClientConnectionError
|
||||
import voluptuous as vol
|
||||
from vulcan import ( # pylint: disable=import-error
|
||||
from vulcan import (
|
||||
Account,
|
||||
ExpiredTokenException,
|
||||
InvalidPINException,
|
||||
|
@ -3,7 +3,6 @@
|
||||
"name": "Uonet+ Vulcan",
|
||||
"codeowners": ["@Antoni-Czaplicki"],
|
||||
"config_flow": true,
|
||||
"disabled": "Temporarily unblock nightly build",
|
||||
"documentation": "https://www.home-assistant.io/integrations/vulcan",
|
||||
"iot_class": "cloud_polling",
|
||||
"quality_scale": "silver",
|
||||
|
@ -1,6 +1,6 @@
|
||||
"""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):
|
||||
|
@ -2594,6 +2594,9 @@ vsure==1.8.1
|
||||
# homeassistant.components.vasttrafik
|
||||
vtjp==0.1.14
|
||||
|
||||
# homeassistant.components.vulcan
|
||||
vulcan-api==2.3.0
|
||||
|
||||
# homeassistant.components.vultr
|
||||
vultr==0.1.2
|
||||
|
||||
|
@ -1837,6 +1837,9 @@ volvooncall==0.10.2
|
||||
# homeassistant.components.verisure
|
||||
vsure==1.8.1
|
||||
|
||||
# homeassistant.components.vulcan
|
||||
vulcan-api==2.3.0
|
||||
|
||||
# homeassistant.components.vultr
|
||||
vultr==0.1.2
|
||||
|
||||
|
@ -1,41 +1,33 @@
|
||||
"""Test the Uonet+ Vulcan config flow."""
|
||||
# flake8: noqa
|
||||
import json
|
||||
from unittest import mock
|
||||
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.components.vulcan import config_flow, const, register
|
||||
# from homeassistant.components.vulcan.config_flow import ClientConnectionError, Keystore
|
||||
from homeassistant.components.vulcan import config_flow, const, register
|
||||
from homeassistant.components.vulcan.config_flow import ClientConnectionError, Keystore
|
||||
from homeassistant.const import CONF_PIN, CONF_REGION, CONF_TOKEN
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
from tests.common import MockConfigEntry, load_fixture
|
||||
|
||||
# from vulcan import (
|
||||
# Account,
|
||||
# ExpiredTokenException,
|
||||
# InvalidPINException,
|
||||
# InvalidSymbolException,
|
||||
# InvalidTokenException,
|
||||
# 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",
|
||||
# )
|
||||
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:
|
||||
|
Reference in New Issue
Block a user