Skip to content

Commit

Permalink
feature: log zigpy_cc version on startup
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyatuning committed Mar 14, 2020
1 parent 31351c7 commit eb3e289
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion zigpy_cc/zigbee/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import zigpy.util
from zigpy.profiles import zha
from zigpy.zdo.types import ZDOCmd
from zigpy_cc import types as t
from zigpy_cc import types as t, __version__
from zigpy_cc.api import API
from zigpy_cc.exception import CommandError, TODO
from zigpy_cc.types import Subsystem, NetworkOptions, ZnpVersion
Expand Down Expand Up @@ -76,6 +76,7 @@ async def reconnect(self):

async def startup(self, auto_form=False):
"""Perform a complete application startup"""
LOGGER.debug("Starting zigpy-cc version: %s", __version__)
self.version = await self._api.version()
ver = ZnpVersion(self.version["product"]).name
LOGGER.debug("Detected znp version '%s' (%s)", ver, self.version)
Expand Down

0 comments on commit eb3e289

Please sign in to comment.