Skip to content

Commit

Permalink
Bump bellows to 0.40.0 (#77)
Browse files Browse the repository at this point in the history
* Bump bellows to 0.40.0

* Use bellows command kwargs

* Don't use `ezsp.types`
  • Loading branch information
puddly authored Jul 29, 2024
1 parent e8e35a0 commit 2e302a2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ dependencies = [
"click>=8.0.0",
"zigpy",
"crc",
"bellows~=0.39.0",
"bellows~=0.40.0",
'gpiod; platform_system=="Linux"',
"coloredlogs",
"async_timeout",
Expand Down
6 changes: 3 additions & 3 deletions universal_silabs_flasher/flasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ async def enter_bootloader(self) -> None:
elif self.app_type is ApplicationType.EZSP:
async with self._connect_ezsp(self.app_baudrate) as ezsp:
try:
res = await ezsp.launchStandaloneBootloader(0x01)
res = await ezsp.launchStandaloneBootloader(mode=0x01)
except asyncio.TimeoutError:
_LOGGER.warning(
"Application failed to respond to bootloader launching command."
Expand Down Expand Up @@ -303,8 +303,8 @@ async def dump_emberznet_config(self) -> None:
raise RuntimeError(f"Device is not running EmberZNet: {self.app_type}")

async with self._connect_ezsp(self.app_baudrate) as ezsp:
for config in ezsp.types.EzspConfigId:
v = await ezsp.getConfigurationValue(config)
for config in bellows.types.EzspConfigId:
v = await ezsp.getConfigurationValue(configId=config)
if v[0] == bellows.types.EzspStatus.ERROR_INVALID_ID:
continue
print(f"{config.name}={v[1]}")
Expand Down

0 comments on commit 2e302a2

Please sign in to comment.