fix #15, missing service discovery
This commit is contained in:
@@ -88,7 +88,7 @@ class PowerViewBLE:
|
|||||||
disconnected_callback=self._on_disconnect,
|
disconnected_callback=self._on_disconnect,
|
||||||
services=[
|
services=[
|
||||||
UUID_COV_SERVICE,
|
UUID_COV_SERVICE,
|
||||||
# self.UUID_DEV_SERVICE,
|
UUID_DEV_SERVICE,
|
||||||
# self.UUID_BAT_SERVICE,
|
# self.UUID_BAT_SERVICE,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
@@ -283,6 +283,9 @@ class PowerViewBLE:
|
|||||||
.copy()
|
.copy()
|
||||||
.decode("UTF-8")
|
.decode("UTF-8")
|
||||||
)
|
)
|
||||||
|
except Exception as ex:
|
||||||
|
LOGGER.error("Error: %s - %s", type(ex).__name__, ex)
|
||||||
|
raise
|
||||||
finally:
|
finally:
|
||||||
await self.disconnect()
|
await self.disconnect()
|
||||||
LOGGER.debug("%s device data: %s", self.name, data)
|
LOGGER.debug("%s device data: %s", self.name, data)
|
||||||
@@ -320,7 +323,7 @@ class PowerViewBLE:
|
|||||||
disconnected_callback=self._on_disconnect,
|
disconnected_callback=self._on_disconnect,
|
||||||
services=[
|
services=[
|
||||||
UUID_COV_SERVICE,
|
UUID_COV_SERVICE,
|
||||||
# self.UUID_DEV_SERVICE,
|
UUID_DEV_SERVICE,
|
||||||
# self.UUID_BAT_SERVICE,
|
# self.UUID_BAT_SERVICE,
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -17,5 +17,5 @@
|
|||||||
"issue_tracker": "https://github.com/patman15/hdpv_ble/issues",
|
"issue_tracker": "https://github.com/patman15/hdpv_ble/issues",
|
||||||
"loggers": ["hunterdouglas_powerview_ble"],
|
"loggers": ["hunterdouglas_powerview_ble"],
|
||||||
"requirements": ["cryptography>=43.0.0"],
|
"requirements": ["cryptography>=43.0.0"],
|
||||||
"version": "0.22"
|
"version": "0.23"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user