Skip to content

Commit

Permalink
Do not iterate over serial ports when probing
Browse files Browse the repository at this point in the history
puddly committed Jul 5, 2024
1 parent d16e455 commit d00e971
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions zigpy_zigate/api.py
Original file line number Diff line number Diff line change
@@ -592,15 +592,5 @@ async def probe(cls, device_config: Dict[str, Any]) -> bool:

async def _probe(self) -> None:
"""Open port and try sending a command"""
try:
device = next(
serial.tools.list_ports.grep(
self._config[zigpy_zigate.config.CONF_DEVICE_PATH]
)
)
if device.description == "ZiGate":
return
except StopIteration:
pass
await self.connect()
await self.set_raw_mode()

0 comments on commit d00e971

Please sign in to comment.