State¶
-
class
pyhap.state.
State
(*, address: Union[str, List[str], None] = None, mac=None, pincode=None, port=None)[source]¶ Class to store all (semi-)static information.
That includes all needed for setup of driver and pairing.
-
add_paired_client
(client_username_bytes: bytes, client_public: bytes, perms: bytes) → None[source]¶ Add a given client to dictionary of paired clients.
Parameters: - client_username_bytes (bytes) – The client’s user id bytes.
- client_public (bytes) – The client’s public key (not the session public key).
-
address
¶ Return the first address for backwards compat.
-
paired
¶ Return if main accessory is currently paired.
-