Skip to content

Commit

Permalink
Merge 3e393de into 4f0604b
Browse files Browse the repository at this point in the history
  • Loading branch information
puddly committed Jun 27, 2022
2 parents 4f0604b + 3e393de commit 3cf5fe4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/test_application.py
Expand Up @@ -593,7 +593,9 @@ async def test_startup_formed(app):
async def test_startup_not_formed(app):
app.start_network = AsyncMock()
app.form_network = AsyncMock()
app.load_network_info = AsyncMock(side_effect=NetworkNotFormed())
app.load_network_info = AsyncMock(
side_effect=[NetworkNotFormed(), NetworkNotFormed(), None]
)
app.permit = AsyncMock()

with pytest.raises(NetworkNotFormed):
Expand Down
2 changes: 1 addition & 1 deletion zigpy/__init__.py
@@ -1,5 +1,5 @@
MAJOR_VERSION = 0
MINOR_VERSION = 47
PATCH_VERSION = "0"
PATCH_VERSION = "1"
__short_version__ = f"{MAJOR_VERSION}.{MINOR_VERSION}"
__version__ = f"{__short_version__}.{PATCH_VERSION}"
1 change: 1 addition & 0 deletions zigpy/application.py
Expand Up @@ -72,6 +72,7 @@ async def startup(self, *, auto_form: bool = False):

LOGGER.info("Forming a new network")
await self.form_network()
await self.load_network_info(load_devices=False)

LOGGER.debug("Network info: %s", self.state.network_info)
LOGGER.debug("Node info: %s", self.state.node_info)
Expand Down

0 comments on commit 3cf5fe4

Please sign in to comment.