python-jebao 0.1.0__tar.gz → 0.1.1__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_jebao-0.1.0 → python_jebao-0.1.1}/PKG-INFO +1 -1
- {python_jebao-0.1.0 → python_jebao-0.1.1}/jebao/__init__.py +1 -1
- {python_jebao-0.1.0 → python_jebao-0.1.1}/jebao/device.py +2 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/jebao/mdp20000.py +1 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/pyproject.toml +1 -1
- {python_jebao-0.1.0 → python_jebao-0.1.1}/python_jebao.egg-info/PKG-INFO +1 -1
- {python_jebao-0.1.0 → python_jebao-0.1.1}/LICENSE +0 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/README.md +0 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/jebao/const.py +0 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/jebao/discovery.py +0 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/jebao/exceptions.py +0 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/jebao/protocol.py +0 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/jebao/retry.py +0 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/python_jebao.egg-info/SOURCES.txt +0 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/python_jebao.egg-info/dependency_links.txt +0 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/python_jebao.egg-info/requires.txt +0 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/python_jebao.egg-info/top_level.txt +0 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/setup.cfg +0 -0
- {python_jebao-0.1.0 → python_jebao-0.1.1}/setup.py +0 -0
|
@@ -6,6 +6,7 @@ from typing import Optional
|
|
|
6
6
|
from .const import DEFAULT_TIMEOUT, DeviceState
|
|
7
7
|
from .exceptions import JebaoConnectionError
|
|
8
8
|
from .protocol import JebaoProtocol
|
|
9
|
+
from .retry import async_retry
|
|
9
10
|
|
|
10
11
|
_LOGGER = logging.getLogger(__name__)
|
|
11
12
|
|
|
@@ -99,6 +100,7 @@ class JebaoDevice:
|
|
|
99
100
|
await self._protocol.disconnect()
|
|
100
101
|
_LOGGER.info("Disconnected from %s", self.host)
|
|
101
102
|
|
|
103
|
+
@async_retry(max_attempts=3, delay=0.5)
|
|
102
104
|
async def update(self, timeout: float = DEFAULT_TIMEOUT) -> None:
|
|
103
105
|
"""Update device status.
|
|
104
106
|
|
|
@@ -40,6 +40,7 @@ class MDP20000Device(JebaoDevice):
|
|
|
40
40
|
super().__init__(host, port, device_id, MODEL_MDP20000)
|
|
41
41
|
self._feed_duration: int = 1 # Last configured feed duration
|
|
42
42
|
|
|
43
|
+
@async_retry(max_attempts=3, delay=0.5)
|
|
43
44
|
async def ensure_manual_mode(self, timeout: float = COMMAND_TIMEOUT) -> None:
|
|
44
45
|
"""Ensure device is in manual mode.
|
|
45
46
|
|
|
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
|