Skip to content

Commit 7ede6ef

Browse files
authored
fix: replace Timing import with local dataclass for HA 2026.5
fix: compatibility with infrared-protocols 2026.5 API (remove Timing import)
1 parent be7ccd8 commit 7ede6ef

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

custom_components/rav311_remote/pioneer.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
from __future__ import annotations
22

3-
from infrared_protocols import Command, Timing
3+
from infrared_protocols import Command
4+
from dataclasses import dataclass
5+
6+
@dataclass
7+
class Timing:
8+
high_us: int
9+
low_us: int
410

511
PIONEER_FREQUENCY_HZ = 40_000
612
_HEADER_HIGH = 9000

0 commit comments

Comments
 (0)