<!--
{
  "availability" : [
    "iOS: 27.2.0 -",
    "iPadOS: 27.2.0 -",
    "macCatalyst: 27.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeExtensions",
  "identifier" : "/documentation/HomeExtensions/HomeAccessorySettingsProvider/settings(context:for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HomeExtensions"
    ],
    "preciseIdentifier" : "s:14HomeExtensions0A25AccessorySettingsProviderP8settings7context3for9ContainerQz7ContextQz_So11HMAccessoryCtYaKF"
  },
  "title" : "settings(context:for:)"
}
-->

# settings(context:for:)

Reads the accessory and returns a fresh snapshot of its settings.

```
@MainActor func settings(context: Self.Context, for accessory: HMAccessory) async throws -> Self.Container
```

## Parameters

`context`

The context you supplied to [`HomeAccessorySettings`](/documentation/HomeExtensions/HomeAccessorySettings).

`accessory`

The accessory to read settings from.

## Return Value

The accessory’s current settings.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)