TISControlProtocol 0.7.0__tar.gz → 0.7.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.7.0 → tiscontrolprotocol-0.7.2}/PKG-INFO +1 -1
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/pyproject.toml +1 -1
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/api.py +16 -9
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/.gitignore +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/.vscode/c_cpp_properties.json +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/.vscode/launch.json +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/.vscode/settings.json +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/.vscode/tasks.json +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/LICENSE +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/README.md +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/dev/pump_version.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/BytesHelper.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/__init__.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/AckCoordinator.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketDispatcher.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketExtractor.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/AnalogFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/AutoBinaryFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/BinaryFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/ClimateBinaryFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/ClimateControlFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/ControlResponseHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/DiscoveryFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/FloorBinaryFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/HealthFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/LunaTempFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/RealTimeFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/SearchResponseHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/SecurityFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/UpdateResponseHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/UpdateSecurityHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/WeatherFeedbackHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketHandlers/__init__.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketProtocol.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketReceiver.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/PacketSender.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/ProtocolHandler.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/UpdateCoordinator.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/Protocols/udp/__init__.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/__init__.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/crc.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/dev_api.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/logo.png +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/mock_api.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/src/TISControlProtocol/shared.py +0 -0
- {tiscontrolprotocol-0.7.0 → tiscontrolprotocol-0.7.2}/tests/test.py +0 -0
|
@@ -65,7 +65,7 @@ class TISApi:
|
|
|
65
65
|
except Exception as e:
|
|
66
66
|
logging.error("Error connecting to TIS API %s", e)
|
|
67
67
|
raise ConnectionError
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
try:
|
|
70
70
|
self.hass.data[self.domain]["discovered_devices"] = []
|
|
71
71
|
self.hass.http.register_view(TISEndPoint(self))
|
|
@@ -77,7 +77,6 @@ class TISApi:
|
|
|
77
77
|
logging.error("Error registering views %s", e)
|
|
78
78
|
raise ConnectionError
|
|
79
79
|
|
|
80
|
-
|
|
81
80
|
def run_display(self, style="dots"):
|
|
82
81
|
try:
|
|
83
82
|
self.display = ST7789.ST7789(
|
|
@@ -139,6 +138,7 @@ class TISApi:
|
|
|
139
138
|
self.config_entries = dict(grouped)
|
|
140
139
|
|
|
141
140
|
# add a lock module config entry
|
|
141
|
+
logging.warning(f"lock_module_password {data['configs']['lock_module_password']}")
|
|
142
142
|
self.config_entries["lock_module"] = {
|
|
143
143
|
"password": data["configs"]["lock_module_password"]
|
|
144
144
|
}
|
|
@@ -315,13 +315,18 @@ class ChangeSecurityPassEndpoint(HomeAssistantView):
|
|
|
315
315
|
status=400,
|
|
316
316
|
)
|
|
317
317
|
|
|
318
|
-
|
|
318
|
+
logging.warning(f"Old pass: {old_pass}, New pass: {new_pass}")
|
|
319
|
+
logging.warning(
|
|
320
|
+
f"Correct pass: {self.tis_api.config_entries['lock_module']['password']}"
|
|
321
|
+
)
|
|
322
|
+
|
|
323
|
+
if old_pass != self.tis_api.config_entries["lock_module"]["password"]:
|
|
319
324
|
return web.json_response(
|
|
320
325
|
{
|
|
321
326
|
"message": "error",
|
|
322
|
-
"error": "
|
|
327
|
+
"error": "Old password is incorrect, please try again",
|
|
323
328
|
},
|
|
324
|
-
status=
|
|
329
|
+
status=403,
|
|
325
330
|
)
|
|
326
331
|
|
|
327
332
|
if len(new_pass) < 4:
|
|
@@ -333,13 +338,13 @@ class ChangeSecurityPassEndpoint(HomeAssistantView):
|
|
|
333
338
|
status=400,
|
|
334
339
|
)
|
|
335
340
|
|
|
336
|
-
if
|
|
341
|
+
if new_pass != confirm_pass:
|
|
337
342
|
return web.json_response(
|
|
338
343
|
{
|
|
339
344
|
"message": "error",
|
|
340
|
-
"error": "
|
|
345
|
+
"error": "New password and confirmation do not match",
|
|
341
346
|
},
|
|
342
|
-
status=
|
|
347
|
+
status=400,
|
|
343
348
|
)
|
|
344
349
|
|
|
345
350
|
directory = "/conf/data"
|
|
@@ -358,5 +363,7 @@ class ChangeSecurityPassEndpoint(HomeAssistantView):
|
|
|
358
363
|
)
|
|
359
364
|
|
|
360
365
|
async def reload_platforms(self):
|
|
361
|
-
for entry in self.tis_api.hass.config_entries.async_entries(
|
|
366
|
+
for entry in self.tis_api.hass.config_entries.async_entries(
|
|
367
|
+
self.tis_api.domain
|
|
368
|
+
):
|
|
362
369
|
await self.tis_api.hass.config_entries.async_reload(entry.entry_id)
|
|
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.7.0 → tiscontrolprotocol-0.7.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
|
|
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
|