Skip to content

Commit 3875d11

Browse files
authored
Fix blocking metadata version call (#630)
1 parent 09cf7ce commit 3875d11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bellows/zigbee/application.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"54:EF:44": 0x115F, # Lumi
6666
}
6767

68+
LIB_VERSION = importlib.metadata.version("bellows")
6869
LOGGER = logging.getLogger(__name__)
6970

7071

@@ -341,7 +342,7 @@ async def load_network_info(self, *, load_devices=False) -> None:
341342
can_rewrite_custom_eui64 = await ezsp.can_rewrite_custom_eui64()
342343

343344
self.state.network_info = zigpy.state.NetworkInfo(
344-
source=f"bellows@{importlib.metadata.version('bellows')}",
345+
source=f"bellows@{LIB_VERSION}",
345346
extended_pan_id=zigpy.types.ExtendedPanId(nwk_params.extendedPanId),
346347
pan_id=zigpy.types.PanId(nwk_params.panId),
347348
nwk_update_id=zigpy.types.uint8_t(nwk_params.nwkUpdateId),

0 commit comments

Comments
 (0)