Bump python-otbr-api to 2.1.0 (#93790)

* Bump python-otbr-api to 2.1.0

* Fix tests
This commit is contained in:
Erik Montnemery 2023-05-30 12:47:46 +02:00 committed by GitHub
parent 4596ff0ce5
commit 16d8c8d4d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 41 additions and 51 deletions

View file

@ -148,7 +148,8 @@ async def async_get_config_entry_diagnostics(
"unexpected_routers": set(),
},
)
if mlp := record.dataset.get(MeshcopTLVType.MESHLOCALPREFIX):
if mlp_item := record.dataset.get(MeshcopTLVType.MESHLOCALPREFIX):
mlp = str(mlp_item)
network["prefixes"].add(f"{mlp[0:4]}:{mlp[4:8]}:{mlp[8:12]}:{mlp[12:16]}")
# Find all routes currently act that might be thread related, so we can match them to