TISControlProtocol 0.4.0__tar.gz → 0.4.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/.vscode/tasks.json +11 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/PKG-INFO +1 -1
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/pyproject.toml +1 -1
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/ProtocolHandler.py +12 -2
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/.gitignore +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/.vscode/c_cpp_properties.json +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/.vscode/launch.json +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/.vscode/settings.json +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/LICENSE +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/README.md +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/dev/pump_version.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/BytesHelper.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/__init__.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/AckCoordinator.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketDispatcher.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketExtractor.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/AutoBinaryFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/BinaryFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/ClimateBinaryFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/ClimateControlFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/ControlResponseHandler.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/DiscoveryFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/HealthFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/LunaTempFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/RealTimeFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/SearchResponseHandler.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/SecurityFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/UpdateResponseHandler.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/__init__.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketProtocol.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketReceiver.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/PacketSender.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/UpdateCoordinator.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/udp/__init__.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/ST7789/__init__.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/__init__.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/api.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/crc.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/dev_api.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/logo.png +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/mock_api.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/shared.py +0 -0
- {tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/tests/test.py +0 -0
|
@@ -37,6 +37,17 @@
|
|
|
37
37
|
],
|
|
38
38
|
"problemMatcher": [],
|
|
39
39
|
"detail": "Upload the latest version of the package to PyPI."
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"label": "Update, Build, and Upload",
|
|
43
|
+
"dependsOn": [
|
|
44
|
+
"Update Version",
|
|
45
|
+
"Build Package",
|
|
46
|
+
"Upload Package"
|
|
47
|
+
],
|
|
48
|
+
"dependsOrder": "sequence",
|
|
49
|
+
"problemMatcher": [],
|
|
50
|
+
"detail": "Update the version, build the package, and upload it to PyPI."
|
|
40
51
|
}
|
|
41
52
|
]
|
|
42
53
|
}
|
|
@@ -55,6 +55,7 @@ class TISProtocolHandler:
|
|
|
55
55
|
OPERATION_DISCOVERY = [0x00, 0x0E]
|
|
56
56
|
OPERATION_CONTROL_SECURITY = [0x01, 0x04]
|
|
57
57
|
OPERATION_CONTROL_AC = [0xE0, 0xEE]
|
|
58
|
+
OPERATION_AC_UPDATE = [0xE0, 0xEC]
|
|
58
59
|
|
|
59
60
|
def __init__(self) -> None:
|
|
60
61
|
"""Initialize a ProtocolHandler instance."""
|
|
@@ -313,12 +314,12 @@ class TISProtocolHandler:
|
|
|
313
314
|
def generate_ac_control_packet(
|
|
314
315
|
self,
|
|
315
316
|
entity,
|
|
317
|
+
temperature_ranges: dict,
|
|
318
|
+
fan_modes: dict,
|
|
316
319
|
target_state: bool | None = None,
|
|
317
320
|
target_temperature: float | None = None,
|
|
318
321
|
target_mode: HVACMode | None = None, # noqa: F821 # type: ignore
|
|
319
322
|
target_fan_mode: str | None = None,
|
|
320
|
-
temperature_ranges: dict = {},
|
|
321
|
-
fan_modes: dict = {},
|
|
322
323
|
) -> TISPacket:
|
|
323
324
|
|
|
324
325
|
# Determine the target values, falling back to class attributes if not provided
|
|
@@ -360,3 +361,12 @@ class TISProtocolHandler:
|
|
|
360
361
|
destination_ip=entity.gateway,
|
|
361
362
|
additional_bytes=additional_bytes,
|
|
362
363
|
)
|
|
364
|
+
|
|
365
|
+
def generate_ac_update_packet(self, entity) -> TISPacket:
|
|
366
|
+
return TISPacket(
|
|
367
|
+
device_id=entity.device_id,
|
|
368
|
+
operation_code=self.OPERATION_AC_UPDATE,
|
|
369
|
+
source_ip=entity.api.host,
|
|
370
|
+
destination_ip=entity.gateway,
|
|
371
|
+
additional_bytes=[entity.ac_number],
|
|
372
|
+
)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/Protocols/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tiscontrolprotocol-0.4.0 → tiscontrolprotocol-0.4.2}/src/TISControlProtocol/ST7789/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|