Skip to content

Commit

Permalink
Fix blocking metadata version call (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJulianJES authored Jun 26, 2024
1 parent ccca570 commit 0e3e5ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zigpy_zigate/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
SCHEMA_DEVICE,
)

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


Expand Down Expand Up @@ -91,7 +92,7 @@ async def load_network_info(self, *, load_devices: bool = False):
)

self.state.network_info = zigpy.state.NetworkInfo(
source=f"zigpy-zigate@{importlib.metadata.version('zigpy-zigate')}",
source=f"zigpy-zigate@{LIB_VERSION}",
extended_pan_id=epid,
pan_id=zigpy.types.PanId(network_state[2]),
nwk_update_id=0,
Expand Down

0 comments on commit 0e3e5ae

Please sign in to comment.