Skip to content

Commit

Permalink
Fix blocking metadata version call
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJulianJES committed Jun 14, 2024
1 parent 6135c05 commit 681a5a1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zigpy_deconz/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
from zigpy_deconz.config import CONFIG_SCHEMA
import zigpy_deconz.exception

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

CHANGE_NETWORK_POLL_TIME = 1
Expand Down Expand Up @@ -319,9 +320,7 @@ async def load_network_info(self, *, load_devices=False):

node_info.version = f"{int(self._api.firmware_version):#010x}"

network_info.source = (
f"zigpy-deconz@{importlib.metadata.version('zigpy-deconz')}"
)
network_info.source = f"zigpy-deconz@{LIB_VERSION}"
network_info.metadata = {
"deconz": {
"version": node_info.version,
Expand Down

0 comments on commit 681a5a1

Please sign in to comment.