Disable control4 integration (#124746)
parent
e447d83024
commit
16dd6b1712
|
@ -1,5 +1,7 @@
|
|||
"""The Control4 integration."""
|
||||
|
||||
# mypy: ignore-errors
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
|
@ -7,10 +9,10 @@ import logging
|
|||
from typing import Any
|
||||
|
||||
from aiohttp import client_exceptions
|
||||
from pyControl4.account import C4Account
|
||||
from pyControl4.director import C4Director
|
||||
from pyControl4.error_handling import BadCredentials
|
||||
|
||||
# from pyControl4.account import C4Account
|
||||
# from pyControl4.director import C4Director
|
||||
# from pyControl4.error_handling import BadCredentials
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import (
|
||||
CONF_HOST,
|
||||
|
|
|
@ -1,14 +1,17 @@
|
|||
"""Config flow for Control4 integration."""
|
||||
|
||||
# mypy: ignore-errors
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
from aiohttp.client_exceptions import ClientError
|
||||
from pyControl4.account import C4Account
|
||||
from pyControl4.director import C4Director
|
||||
from pyControl4.error_handling import NotFound, Unauthorized
|
||||
|
||||
# from pyControl4.account import C4Account
|
||||
# from pyControl4.director import C4Director
|
||||
# from pyControl4.error_handling import NotFound, Unauthorized
|
||||
import voluptuous as vol
|
||||
|
||||
from homeassistant.config_entries import (
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
"""Provides data updates from the Control4 controller for platforms."""
|
||||
# mypy: ignore-errors
|
||||
|
||||
from collections import defaultdict
|
||||
import logging
|
||||
from typing import Any
|
||||
|
||||
from pyControl4.account import C4Account
|
||||
from pyControl4.director import C4Director
|
||||
from pyControl4.error_handling import BadToken
|
||||
|
||||
# from pyControl4.account import C4Account
|
||||
# from pyControl4.director import C4Director
|
||||
# from pyControl4.error_handling import BadToken
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import CONF_HOST, CONF_PASSWORD, CONF_TOKEN, CONF_USERNAME
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
"""Platform for Control4 Lights."""
|
||||
|
||||
# mypy: ignore-errors
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import asyncio
|
||||
|
@ -7,9 +9,8 @@ from datetime import timedelta
|
|||
import logging
|
||||
from typing import Any
|
||||
|
||||
from pyControl4.error_handling import C4Exception
|
||||
from pyControl4.light import C4Light
|
||||
|
||||
# from pyControl4.error_handling import C4Exception
|
||||
# from pyControl4.light import C4Light
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS,
|
||||
ATTR_TRANSITION,
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
"name": "Control4",
|
||||
"codeowners": ["@lawtancool"],
|
||||
"config_flow": true,
|
||||
"disabled": "This integration is disabled because it uses an old version of socketio.",
|
||||
"documentation": "https://www.home-assistant.io/integrations/control4",
|
||||
"iot_class": "local_polling",
|
||||
"loggers": ["pyControl4"],
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
"""Platform for Control4 Rooms Media Players."""
|
||||
|
||||
# mypy: ignore-errors
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
@ -8,9 +10,8 @@ import enum
|
|||
import logging
|
||||
from typing import Any
|
||||
|
||||
from pyControl4.error_handling import C4Exception
|
||||
from pyControl4.room import C4Room
|
||||
|
||||
# from pyControl4.error_handling import C4Exception
|
||||
# from pyControl4.room import C4Room
|
||||
from homeassistant.components.media_player import (
|
||||
MediaPlayerDeviceClass,
|
||||
MediaPlayerEntity,
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
extend = "../../../pyproject.toml"
|
||||
|
||||
lint.extend-ignore = [
|
||||
"F821"
|
||||
]
|
|
@ -1685,9 +1685,6 @@ pyAtome==0.1.1
|
|||
# homeassistant.components.hdmi_cec
|
||||
pyCEC==0.5.2
|
||||
|
||||
# homeassistant.components.control4
|
||||
pyControl4==1.1.0
|
||||
|
||||
# homeassistant.components.duotecno
|
||||
pyDuotecno==2024.5.1
|
||||
|
||||
|
|
|
@ -1368,9 +1368,6 @@ py-synologydsm-api==2.5.2
|
|||
# homeassistant.components.hdmi_cec
|
||||
pyCEC==0.5.2
|
||||
|
||||
# homeassistant.components.control4
|
||||
pyControl4==1.1.0
|
||||
|
||||
# homeassistant.components.duotecno
|
||||
pyDuotecno==2024.5.1
|
||||
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
extend = "../../../pyproject.toml"
|
||||
|
||||
lint.extend-ignore = [
|
||||
"F821"
|
||||
]
|
|
@ -1,11 +1,13 @@
|
|||
"""Test the Control4 config flow."""
|
||||
|
||||
# mypy: ignore-errors
|
||||
from unittest.mock import AsyncMock, patch
|
||||
|
||||
from pyControl4.account import C4Account
|
||||
from pyControl4.director import C4Director
|
||||
from pyControl4.error_handling import Unauthorized
|
||||
import pytest
|
||||
|
||||
# from pyControl4.account import C4Account
|
||||
# from pyControl4.director import C4Director
|
||||
# from pyControl4.error_handling import Unauthorized
|
||||
from homeassistant import config_entries
|
||||
from homeassistant.components.control4.const import DEFAULT_SCAN_INTERVAL, DOMAIN
|
||||
from homeassistant.const import (
|
||||
|
@ -16,7 +18,6 @@ from homeassistant.const import (
|
|||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.data_entry_flow import FlowResultType
|
||||
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
|
@ -41,6 +42,7 @@ def _get_mock_c4_director():
|
|||
return c4_director_mock
|
||||
|
||||
|
||||
@pytest.skip(allow_module_level=True)
|
||||
async def test_form(hass: HomeAssistant) -> None:
|
||||
"""Test we get the form."""
|
||||
|
||||
|
|
Loading…
Reference in New Issue