Skip to content

Commit

Permalink
Update __init__.py with AC2A
Browse files Browse the repository at this point in the history
  • Loading branch information
alexnathanson authored Jan 14, 2025
1 parent 5f3a2c9 commit 2d6b1dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bluetti_mqtt/bluetooth/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
from typing import Set
from bleak import BleakScanner
from bleak.backends.device import BLEDevice
from bluetti_mqtt.core import BluettiDevice, AC200M, AC300, AC500, AC180, AC60, EP500, EP500P, EP600, EB3A
from bluetti_mqtt.core import BluettiDevice, AC200M, AC300, AC500, AC180, AC60, EP500, EP500P, EP600, EB3A, AC2A
from .client import BluetoothClient
from .exc import BadConnectionError, ModbusError, ParseError
from .manager import MultiDeviceManager


DEVICE_NAME_RE = re.compile(r'^(AC200M|AC300|AC500|AC60|AC180|EP500P|EP500|EP600|EB3A)(\d+)$')
DEVICE_NAME_RE = re.compile(r'^(AC200M|AC300|AC500|AC60|AC180|EP500P|EP500|EP600|EB3A|AC2A)(\d+)$')


async def scan_devices():
Expand Down Expand Up @@ -43,6 +43,8 @@ def build_device(address: str, name: str):
return EP600(address, match[2])
if match[1] == 'EB3A':
return EB3A(address, match[2])
if match[1] == 'AC2A':
return AC2A(address, match[2])


async def check_addresses(addresses: Set[str]):
Expand Down

0 comments on commit 2d6b1dd

Please sign in to comment.