python-selve-new 2.2.16__tar.gz → 2.2.17__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.
- {python_selve_new-2.2.16/python_selve_new.egg-info → python_selve_new-2.2.17}/PKG-INFO +1 -1
- {python_selve_new-2.2.16 → python_selve_new-2.2.17/python_selve_new.egg-info}/PKG-INFO +1 -1
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/__init__.py +19 -3
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/setup.py +1 -1
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/.github/FUNDING.yml +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/.github/workflows/python-publish.yml +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/.gitignore +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/.idea/.gitignore +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/.idea/inspectionProfiles/profiles_settings.xml +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/.idea/misc.xml +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/.idea/modules.xml +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/.idea/python-selve-new.iml +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/.idea/vcs.xml +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/.vscode/settings.json +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/LICENSE +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/README.md +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/package.sh +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/pyproject.toml +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/python_selve_new.egg-info/SOURCES.txt +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/python_selve_new.egg-info/dependency_links.txt +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/python_selve_new.egg-info/entry_points.txt +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/python_selve_new.egg-info/requires.txt +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/python_selve_new.egg-info/top_level.txt +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/commands/__init__.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/commands/command.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/commands/device.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/commands/event.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/commands/group.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/commands/iveo.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/commands/param.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/commands/senSim.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/commands/sender.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/commands/sensor.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/commands/service.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/device.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/gateway.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/group.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/iveo.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/senSim.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/sender.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/sensor.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/util/__init__.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/util/errors.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/selve/util/protocol.py +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/setup.cfg +0 -0
- {python_selve_new-2.2.16 → python_selve_new-2.2.17}/test.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-selve-new
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.17
|
|
4
4
|
Summary: Python library for interfacing with selve devices using the USB-RF controller. Written completely new.
|
|
5
5
|
Home-page: https://github.com/Kannix2005/python-selve-new
|
|
6
6
|
Author: Stefan Altheimer
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: python-selve-new
|
|
3
|
-
Version: 2.2.
|
|
3
|
+
Version: 2.2.17
|
|
4
4
|
Summary: Python library for interfacing with selve devices using the USB-RF controller. Written completely new.
|
|
5
5
|
Home-page: https://github.com/Kannix2005/python-selve-new
|
|
6
6
|
Author: Stefan Altheimer
|
|
@@ -9,6 +9,7 @@ from typing import Callable
|
|
|
9
9
|
|
|
10
10
|
import serial
|
|
11
11
|
from serial.tools import list_ports
|
|
12
|
+
from serial import SerialException
|
|
12
13
|
import untangle
|
|
13
14
|
|
|
14
15
|
from selve.commands import param, service
|
|
@@ -216,8 +217,6 @@ class Selve:
|
|
|
216
217
|
self._LOGGER.debug("(Selve Worker): " + "Waiting 5 seconds before trying...")
|
|
217
218
|
await asyncio.sleep(5)
|
|
218
219
|
self._LOGGER.debug("(Selve Worker): " + "Recovering")
|
|
219
|
-
|
|
220
|
-
|
|
221
220
|
|
|
222
221
|
if self._port is not None:
|
|
223
222
|
try:
|
|
@@ -348,8 +347,25 @@ class Selve:
|
|
|
348
347
|
self._serial.flush()
|
|
349
348
|
#always sleep after writing
|
|
350
349
|
await asyncio.sleep(0.5)
|
|
350
|
+
|
|
351
|
+
except SerialException as se:
|
|
352
|
+
self._LOGGER.info('Serial error, trying to reconnect once... ' + str(se))
|
|
353
|
+
await self.recover()
|
|
354
|
+
|
|
355
|
+
try:
|
|
356
|
+
self._LOGGER.debug('Trying again...')
|
|
357
|
+
if not self._serial.is_open:
|
|
358
|
+
self._serial.open()
|
|
359
|
+
self._serial.write(commandstr)
|
|
360
|
+
self._serial.flush()
|
|
361
|
+
#always sleep after writing
|
|
362
|
+
await asyncio.sleep(0.5)
|
|
363
|
+
|
|
364
|
+
except Exception as e:
|
|
365
|
+
self._LOGGER.error("error communicating: " + str(e) + " ; Please restart the integration!")
|
|
366
|
+
|
|
351
367
|
except Exception as e:
|
|
352
|
-
self._LOGGER.error("error communicating: " + str(e))
|
|
368
|
+
self._LOGGER.error("error communicating: " + str(e) + " ; Please restart the integration!")
|
|
353
369
|
|
|
354
370
|
async def processResponse(self, xmlstr):
|
|
355
371
|
"""Processes an XML String into a response object. Returns False if something went wrong or the gateway returned an error."""
|
|
@@ -15,7 +15,7 @@ with open(path.join(here, 'README.md'), encoding='utf-8') as f:
|
|
|
15
15
|
setup(
|
|
16
16
|
|
|
17
17
|
name='python-selve-new', # Required
|
|
18
|
-
version='2.2.
|
|
18
|
+
version='2.2.17', # Required
|
|
19
19
|
description='Python library for interfacing with selve devices using the USB-RF controller. Written completely new.', # Required
|
|
20
20
|
long_description=long_description, # Optional
|
|
21
21
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_selve_new-2.2.16 → python_selve_new-2.2.17}/.idea/inspectionProfiles/profiles_settings.xml
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
|
{python_selve_new-2.2.16 → python_selve_new-2.2.17}/python_selve_new.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{python_selve_new-2.2.16 → python_selve_new-2.2.17}/python_selve_new.egg-info/entry_points.txt
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
|