mirror of
https://github.com/home-assistant/core.git
synced 2026-12-03 04:08:19 -04:00
This commit is contained in:
@@ -6,8 +6,8 @@ import logging
|
||||
import socket
|
||||
from typing import Any, override
|
||||
|
||||
import broadlink as blk
|
||||
from broadlink.exceptions import (
|
||||
import broadlink_async as blk
|
||||
from broadlink_async.exceptions import (
|
||||
AuthenticationError,
|
||||
BroadlinkException,
|
||||
NetworkTimeoutError,
|
||||
|
||||
@@ -4,8 +4,8 @@ from collections.abc import Awaitable, Callable
|
||||
from contextlib import suppress
|
||||
import logging
|
||||
|
||||
import broadlink as blk
|
||||
from broadlink.exceptions import (
|
||||
import broadlink_async as blk
|
||||
from broadlink_async.exceptions import (
|
||||
AuthenticationError,
|
||||
AuthorizationError,
|
||||
BroadlinkException,
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import datetime as dt
|
||||
import logging
|
||||
|
||||
import broadlink as blk
|
||||
import broadlink_async as blk
|
||||
|
||||
from homeassistant.const import CONF_HOST
|
||||
from homeassistant.core import CALLBACK_TYPE, HomeAssistant
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
from typing import TYPE_CHECKING, override
|
||||
|
||||
from broadlink.exceptions import BroadlinkException
|
||||
from broadlink.remote import pulses_to_data as _bl_pulses_to_data
|
||||
from broadlink_async.exceptions import BroadlinkException
|
||||
from broadlink_async.remote import pulses_to_data as _bl_pulses_to_data
|
||||
|
||||
from homeassistant.components.infrared import InfraredCommand, InfraredEmitterEntity
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
import logging
|
||||
from typing import Any, override
|
||||
|
||||
from broadlink.exceptions import BroadlinkException
|
||||
from broadlink_async.exceptions import BroadlinkException
|
||||
|
||||
from homeassistant.components.light import (
|
||||
ATTR_BRIGHTNESS,
|
||||
|
||||
@@ -38,6 +38,6 @@
|
||||
"documentation": "https://www.home-assistant.io/integrations/broadlink",
|
||||
"integration_type": "device",
|
||||
"iot_class": "local_polling",
|
||||
"loggers": ["broadlink"],
|
||||
"requirements": ["python-broadlink==1.0.6"]
|
||||
"loggers": ["broadlink_async"],
|
||||
"requirements": ["broadlink-async==1.1.0"]
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
import logging
|
||||
from typing import override
|
||||
|
||||
from broadlink.exceptions import BroadlinkException
|
||||
from broadlink.remote import TICK
|
||||
from broadlink_async.exceptions import BroadlinkException
|
||||
from broadlink_async.remote import TICK
|
||||
from rf_protocols import RadioFrequencyCommand
|
||||
|
||||
from homeassistant.components.radio_frequency import RadioFrequencyTransmitterEntity
|
||||
@@ -64,7 +64,7 @@ def encode_rf_packet(
|
||||
0x00 followed by a 2-byte big-endian tick count
|
||||
|
||||
Each pulse is expressed as multiples of the Broadlink timing unit
|
||||
(about 30.45 µs, ``broadlink.remote.TICK``), which is the timing
|
||||
(about 30.45 µs, ``broadlink_async.remote.TICK``), which is the timing
|
||||
resolution of the RF front-end.
|
||||
"""
|
||||
buf = bytearray([type_byte, repeat_count, 0, 0])
|
||||
|
||||
@@ -9,7 +9,7 @@ from itertools import product
|
||||
import logging
|
||||
from typing import Any, override
|
||||
|
||||
from broadlink.exceptions import (
|
||||
from broadlink_async.exceptions import (
|
||||
AuthorizationError,
|
||||
BroadlinkException,
|
||||
NetworkTimeoutError,
|
||||
|
||||
@@ -5,7 +5,7 @@ from abc import ABC, abstractmethod
|
||||
import logging
|
||||
from typing import Any, override
|
||||
|
||||
from broadlink.exceptions import BroadlinkException
|
||||
from broadlink_async.exceptions import BroadlinkException
|
||||
import probatio
|
||||
|
||||
from homeassistant.components.switch import (
|
||||
|
||||
@@ -5,8 +5,8 @@ from datetime import datetime, timedelta
|
||||
import logging
|
||||
from typing import TYPE_CHECKING, Any, Generic, TypeVar, override
|
||||
|
||||
import broadlink as blk
|
||||
from broadlink.exceptions import AuthorizationError, BroadlinkException
|
||||
import broadlink_async as blk
|
||||
from broadlink_async.exceptions import AuthorizationError, BroadlinkException
|
||||
|
||||
from homeassistant.helpers.update_coordinator import DataUpdateCoordinator, UpdateFailed
|
||||
from homeassistant.util import dt as dt_util
|
||||
|
||||
Generated
+3
-3
@@ -733,6 +733,9 @@ boto3==1.42.97
|
||||
# homeassistant.components.bring
|
||||
bring-api==1.1.2
|
||||
|
||||
# homeassistant.components.broadlink
|
||||
broadlink-async==1.1.0
|
||||
|
||||
# homeassistant.components.brother
|
||||
brother==6.2.0
|
||||
|
||||
@@ -2695,9 +2698,6 @@ python-awair==0.2.5
|
||||
# homeassistant.components.blockchain
|
||||
python-blockchain-api==0.0.2
|
||||
|
||||
# homeassistant.components.broadlink
|
||||
python-broadlink==1.0.6
|
||||
|
||||
# homeassistant.components.bsblan
|
||||
python-bsblan==6.1.8
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ from dataclasses import dataclass
|
||||
import inspect
|
||||
from unittest.mock import AsyncMock, MagicMock, patch
|
||||
|
||||
import broadlink as blk
|
||||
import broadlink_async as blk
|
||||
|
||||
from homeassistant.components.broadlink.const import DOMAIN
|
||||
from homeassistant.core import HomeAssistant
|
||||
|
||||
@@ -4,7 +4,7 @@ import errno
|
||||
import socket
|
||||
from unittest.mock import call, patch
|
||||
|
||||
import broadlink.exceptions as blke
|
||||
import broadlink_async.exceptions as blke
|
||||
import pytest
|
||||
|
||||
from homeassistant import config_entries
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
from unittest.mock import patch
|
||||
|
||||
import broadlink.exceptions as blke
|
||||
import broadlink_async.exceptions as blke
|
||||
import pytest
|
||||
|
||||
from homeassistant.components.broadlink.const import DOMAIN
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
from unittest.mock import call
|
||||
|
||||
from broadlink.exceptions import BroadlinkException
|
||||
from broadlink.remote import pulses_to_data
|
||||
from broadlink_async.exceptions import BroadlinkException
|
||||
from broadlink_async.remote import pulses_to_data
|
||||
from infrared_protocols.commands.nec import NECCommand
|
||||
import pytest
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
from datetime import timedelta
|
||||
from unittest.mock import MagicMock, call
|
||||
|
||||
from broadlink.exceptions import BroadlinkException
|
||||
from broadlink_async.exceptions import BroadlinkException
|
||||
import pytest
|
||||
from rf_protocols.commands.ook import OOKCommand
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
from base64 import b64decode
|
||||
from unittest.mock import call
|
||||
|
||||
from broadlink.exceptions import BroadlinkException
|
||||
from broadlink_async.exceptions import BroadlinkException
|
||||
from freezegun.api import FrozenDateTimeFactory
|
||||
import pytest
|
||||
|
||||
|
||||
Reference in New Issue
Block a user