Skip to content

Commit

Permalink
Change test pairing type when thread_provision called (#366)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jc2k authored Feb 27, 2024
1 parent 4a06745 commit f5f7b10
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aiohomekit/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,10 @@ async def thread_provision(
self,
dataset: str,
) -> None:
pass
# This ultimately needs refactoring so that we can have multiple test transports loaded
# rather than patching this one to be COAP.
self.pairing_data["Connection"] = "CoAP"
self.controller.transport_type = TransportType.COAP

async def image(self, accessory: int, width: int, height: int) -> bytes:
self._ensure_connected()
Expand Down

0 comments on commit f5f7b10

Please sign in to comment.