Replace HCI member import in device.py

This commit is contained in:
Josh Wu
2024-11-12 16:28:17 +08:00
parent 21d23320eb
commit 430046944b
4 changed files with 386 additions and 475 deletions

View File

@@ -80,7 +80,7 @@ impl Address {
/// Creates a new [Address] object.
pub fn new(address: &str, address_type: AddressType) -> PyResult<Self> {
Python::with_gil(|py| {
PyModule::import(py, intern!(py, "bumble.device"))?
PyModule::import(py, intern!(py, "bumble.hci"))?
.getattr(intern!(py, "Address"))?
.call1((address, address_type))
.map(|any| Self(any.into()))