diff --git a/pyhap/hap_handler.py b/pyhap/hap_handler.py index fbf52fd8..103cdc10 100644 --- a/pyhap/hap_handler.py +++ b/pyhap/hap_handler.py @@ -585,7 +585,7 @@ def _pair_verify_two(self, tlv_objects: Dict[bytes, bytes]) -> None: self.client_address, client_uuid, raw_public_key.hex(), - self.state.paired_clients, + {uuid: key.hex() for uuid, key in self.state.paired_clients.items()}, ) self._send_authentication_error_tlv_response(HAP_TLV_STATES.M4) return diff --git a/pyhap/state.py b/pyhap/state.py index 2cabe240..3503b976 100644 --- a/pyhap/state.py +++ b/pyhap/state.py @@ -48,7 +48,7 @@ def __init__( self.setup_id = util.generate_setup_id() self.config_version = DEFAULT_CONFIG_VERSION - self.paired_clients = {} + self.paired_clients: Dict[UUID, bytes] = {} self.client_properties = {} self.private_key = ed25519.Ed25519PrivateKey.generate()