Skip to content

Commit 0e3e5ae

Browse files
authored
Fix blocking metadata version call (#155)
1 parent ccca570 commit 0e3e5ae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zigpy_zigate/zigbee/application.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
SCHEMA_DEVICE,
2323
)
2424

25+
LIB_VERSION = importlib.metadata.version("zigpy-zigate")
2526
LOGGER = logging.getLogger(__name__)
2627

2728

@@ -91,7 +92,7 @@ async def load_network_info(self, *, load_devices: bool = False):
9192
)
9293

9394
self.state.network_info = zigpy.state.NetworkInfo(
94-
source=f"zigpy-zigate@{importlib.metadata.version('zigpy-zigate')}",
95+
source=f"zigpy-zigate@{LIB_VERSION}",
9596
extended_pan_id=epid,
9697
pan_id=zigpy.types.PanId(network_state[2]),
9798
nwk_update_id=0,

0 commit comments

Comments
 (0)