python-ember-mug 1.3.0b1__tar.gz → 1.3.0b3__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_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/PKG-INFO +1 -1
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/ember_mug/__init__.py +1 -1
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/ember_mug/mug.py +0 -2
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/ember_mug/utils.py +4 -1
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/.gitignore +0 -0
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/LICENSE +0 -0
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/README.md +0 -0
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/ember_mug/__main__.py +0 -0
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/ember_mug/cli/__init__.py +0 -0
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/ember_mug/cli/commands.py +0 -0
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/ember_mug/cli/helpers.py +0 -0
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/ember_mug/consts.py +0 -0
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/ember_mug/data.py +0 -0
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/ember_mug/formatting.py +0 -0
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/ember_mug/scanner.py +0 -0
- {python_ember_mug-1.3.0b1 → python_ember_mug-1.3.0b3}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-ember-mug
|
|
3
|
-
Version: 1.3.
|
|
3
|
+
Version: 1.3.0b3
|
|
4
4
|
Summary: Python Library for Ember Mugs.
|
|
5
5
|
Project-URL: Changelog, https://sopelj.github.io/python-ember-mug/changelog/
|
|
6
6
|
Project-URL: Documentation, https://sopelj.github.io/python-ember-mug/
|
|
@@ -174,8 +174,6 @@ class EmberMug:
|
|
|
174
174
|
disconnected_callback=self._disconnect_callback,
|
|
175
175
|
ble_device_callback=lambda: self.device,
|
|
176
176
|
)
|
|
177
|
-
if self.debug:
|
|
178
|
-
await discover_services(client)
|
|
179
177
|
self._expected_disconnect = False
|
|
180
178
|
except (TimeoutError, BleakError) as error:
|
|
181
179
|
logger.debug("%s: Failed to connect to the mug: %s", self.device, error)
|
|
@@ -186,7 +186,10 @@ async def discover_services(client: BleakClient) -> dict[str, Any]:
|
|
|
186
186
|
"descriptors": descriptors,
|
|
187
187
|
}
|
|
188
188
|
for descriptor in characteristic.descriptors:
|
|
189
|
-
|
|
189
|
+
try:
|
|
190
|
+
value = bytes(await client.read_gatt_descriptor(descriptor.handle))
|
|
191
|
+
except BleakError as e:
|
|
192
|
+
value = e
|
|
190
193
|
logger.debug(
|
|
191
194
|
"\t\t[Descriptor] %s: Handle: %s | Value: '%s'",
|
|
192
195
|
descriptor.uuid,
|
|
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
|