Skip to content

Commit

Permalink
Fix blocking metadata version call (#630)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJulianJES authored Jun 14, 2024
1 parent 09cf7ce commit 3875d11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bellows/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"54:EF:44": 0x115F, # Lumi
}

LIB_VERSION = importlib.metadata.version("bellows")
LOGGER = logging.getLogger(__name__)


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

self.state.network_info = zigpy.state.NetworkInfo(
source=f"bellows@{importlib.metadata.version('bellows')}",
source=f"bellows@{LIB_VERSION}",
extended_pan_id=zigpy.types.ExtendedPanId(nwk_params.extendedPanId),
pan_id=zigpy.types.PanId(nwk_params.panId),
nwk_update_id=zigpy.types.uint8_t(nwk_params.nwkUpdateId),
Expand Down

0 comments on commit 3875d11

Please sign in to comment.