settings(context:for:)
Reads the accessory and returns a fresh snapshot of its settings.
Declaration
@MainActor func settings(context: Self.Context, for accessory: HMAccessory) async throws -> Self.ContainerParameters
- context:
The context you supplied to Homeaccessorysettings.
- accessory:
The accessory to read settings from.
Return Value
The accessory’s current settings.