Skip to content

Commit e93fad6

Browse files
committed
ci: Format code
1 parent 96326ce commit e93fad6

15 files changed

Lines changed: 116 additions & 112 deletions

File tree

trash/brand-guides/smartthings-hubs-+-smart-locks.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,30 +8,30 @@ description: Guide for using SmartThings hubs + smart locks with Seam
88

99
[SmartThings Hubs](https://www.samsung.com/fr/smartthings/) are connected to your local network using either Wi-Fi or Ethernet. You pair smart locks to SmartThings hubs using Zigbee or Z-Wave. Them, you can unlock and lock these smart locks remotely, and you can program access codes on them for keyless entry.
1010

11-
***
11+
---
1212

1313
## Supported Devices
1414

1515
This integration supports the SmartThings hub and door locks paired with it.
1616

1717
For detailed information about the SmartThings hubs that Seam supports, see our [SmartThings Supported Devices page](https://www.seam.co/manufacturers/smartthings).
1818

19-
***
19+
---
2020

2121
## Supported Features
2222

2323
We support the following features:
2424

25-
* [Triggering web lock and unlock actions](https://docs.seam.co/latest/capability-guides/smart-locks/lock-and-unlock) on paired smart locks that support this feature
26-
* [Programming access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) on paired smart locks that support this feature
25+
- [Triggering web lock and unlock actions](https://docs.seam.co/latest/capability-guides/smart-locks/lock-and-unlock) on paired smart locks that support this feature
26+
- [Programming access codes](https://docs.seam.co/latest/capability-guides/smart-locks/access-codes) on paired smart locks that support this feature
2727

28-
***
28+
---
2929

3030
### Device Provider Key
3131

3232
To create a [Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) that enables your users to connect their August devices to Seam, include the `smartthings` device provider key in the `accepted_providers` list. For more information, see [Customize the Brands to Display in Your Connect Webviews](https://docs.seam.co/latest/core-concepts/connect-webviews/customizing-connect-webviews#customize-the-brands-to-display-in-your-connect-webviews).
3333

34-
***
34+
---
3535

3636
## Setup Instructions
3737

@@ -41,7 +41,7 @@ To control SmartThings-connected devices using Seam, you must prompt owners of t
4141
2. Follow [these instructions](https://www.samsung.com/ca/support/mobile-devices/smartthings-how-to-set-up-your-hub/) to pair your devices to the SmartThings hub.
4242
3. Note your login credentials for the SmartThings app, and use these credentials to log in to the [Seam Connect Webview](https://docs.seam.co/latest/core-concepts/connect-webviews) to add your devices to Seam.
4343

44-
***
44+
---
4545

4646
## Brand-Specific Features
4747

@@ -51,12 +51,12 @@ Note the following SmartThings-specific features:
5151

5252
For SmartThings-connected devices, you can report the set of supported access code lengths or the minimum and maximum supported code lengths. For details, see [Report Device Access Code Constraints](https://docs.seam.co/latest/api/access_codes/report_device_constraints).
5353

54-
***
54+
---
5555

5656
## Where to Order
5757

5858
To order SmartThings hubs, see the Aeotec **Where to buy** page.
5959

6060
<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td></td><td><strong>Aeotec Where to buy page</strong></td><td></td><td><a href="https://aeotec.com/where-to-buy/">https://aeotec.com/where-to-buy/</a></td><td><a href=".gitbook/assets/smartthings-logo.png">smartthings-logo.png</a></td></tr></tbody></table>
6161

62-
***
62+
---

trash/guides/contact-us.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,3 @@ We're here for you every step of the way!
1010
:computer: [Contact Support](mailto:support@seam.co)
1111

1212
:wave: [Contact Sales](https://www.seam.co/contact-us)
13-

trash/guides/core-concepts/device-capabilities.md

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,21 @@ For example, a battery-powered door lock with a pin-pad such as Yale Assure woul
88

99
Seam exposes each capability as a set of APIs. Furthermore, those APIs are standardized across brands for ease of integration.
1010

11-
12-
1311
![](<../.gitbook/assets/image (10).png>)
1412

1513
### Capabilities -> Actions, Properties, and Events
1614

1715
Each device capability decomposes into 3 sets of affordances:&#x20;
1816

19-
* **Actions** — things you can do to it.&#x20;
20-
* **Properties** — the current state of the device.
21-
* **Events** — reports from the device describing state transitions.&#x20;
17+
- **Actions** — things you can do to it.&#x20;
18+
- **Properties** — the current state of the device.
19+
- **Events** — reports from the device describing state transitions.&#x20;
2220

2321
For example, the `lock` capability decomposes in the following manner:
2422

25-
* **Actions:** `UNLOCK` and `LOCK`
26-
* **Properties:** a `locked` status to determine the lock's current status
27-
* **Events:** a list of lock/unlock events logging all of the lock's transitions.
23+
- **Actions:** `UNLOCK` and `LOCK`
24+
- **Properties:** a `locked` status to determine the lock's current status
25+
- **Events:** a list of lock/unlock events logging all of the lock's transitions.
2826

2927
### Standardizing Capabilities Across Device Brands
3028

@@ -36,9 +34,4 @@ For example, some door locks with the `access_codes` capability require differen
3634

3735
In those instances, we attempt to handle these differences for you. For example, we will generate and set a pin code of the appropriate length. However, you may wish to set your own code. We let you do so, but it must meet the constraints set by the device.
3836

39-
40-
41-
42-
4337
\[1] This device interaction model leans heavily on the wonderful work done by the [W3C WoT](https://www.w3.org/TR/wot-architecture/#sec-interaction-model).
44-

trash/guides/device-guides/hubitat-elevation-hub.md

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description: Guide for using Hubitat Elevation Hubs with Seam
66

77
This integration uses [Hubitat’s Maker API](https://docs2.hubitat.com/en/apps/maker-api) to make devices connected to a Hubitat Hub available for use with Seam.
88

9-
***
9+
---
1010

1111
## Supported Devices
1212

@@ -16,73 +16,73 @@ For detailed information about the Hubitat-connected devices that Seam supports,
1616

1717
We support the following features:
1818

19-
* [Triggering web lock and unlock actions](../capability-guides/smart-locks/lock-and-unlock.md) for devices with this capability
20-
* [Programming access codes](../capability-guides/smart-locks/access-codes/) on devices with this capability
19+
- [Triggering web lock and unlock actions](../capability-guides/smart-locks/lock-and-unlock.md) for devices with this capability
20+
- [Programming access codes](../capability-guides/smart-locks/access-codes/) on devices with this capability
2121

22-
***
22+
---
2323

2424
### Device Provider Key
2525

2626
To create a [Connect Webview](../core-concepts/connect-webviews/) that enables you to connect your Hubitat Hub and devices to Seam, include the `hubitat` device provider key as the `selected_provider` or in the `accepted_providers` list. For more information, see [Customize the Brands to Display in Your Connect Webview](../core-concepts/connect-webviews/customizing-connect-webviews.md#customize-the-brands-to-display-in-your-connect-webviews).
2727

28-
***
28+
---
2929

3030
## Setup Instructions
3131

3232
To control Hubitat Hub-connected devices using Seam, you must prompt owners of these devices to perform the following steps:
3333

3434
### 1. Access the Hubitat Hub Dashboard
3535

36-
* [Follow these instructions to get access to the Hubitat Hub's Dashboard.](https://docs2.hubitat.com/getting-started/registration-and-setup)
36+
- [Follow these instructions to get access to the Hubitat Hub's Dashboard.](https://docs2.hubitat.com/getting-started/registration-and-setup)
3737

3838
### 2. Configure the "Type" of the Device
3939

40-
* From the Hubitat Hub dashboard, click on "Devices" in the left navigation.
41-
* In the "Device Information" section, click on "Type", and select the correct device type of the device.
40+
- From the Hubitat Hub dashboard, click on "Devices" in the left navigation.
41+
- In the "Device Information" section, click on "Type", and select the correct device type of the device.
4242

4343
### 3. Turn on Hub Login Security (IMPORTANT)
4444

4545
This prevents other people on the same network as that of the hub from being able to log in to the dashboard and modify your settings.
4646

47-
* From the Hubitat Hub dashboard, click on "Settings" in the left navigation
48-
* In the "Admin Settings" section, click on "Hub Login Security".
49-
* Click on "Add User"
50-
* Fill in the form with a username, email, and password, and make sure to save this information somewhere. You'll be using these credentials to log in to your dashboard in the future.
47+
- From the Hubitat Hub dashboard, click on "Settings" in the left navigation
48+
- In the "Admin Settings" section, click on "Hub Login Security".
49+
- Click on "Add User"
50+
- Fill in the form with a username, email, and password, and make sure to save this information somewhere. You'll be using these credentials to log in to your dashboard in the future.
5151

52-
### 4. Adding the Maker API App for Seam access
52+
### 4. Adding the Maker API App for Seam access
5353

54-
* From the Hubitat Hub dashboard, click on "Apps" in the left navigation
55-
* Click on "Add Built-In App" on the top right corner
56-
* Click on the "Maker API" app to install it
57-
* Under the "Security" section:
58-
* Enable "Allow Access via Remote / Cloud"
59-
* Disable "Allow Access via Local IP / Address"
60-
* Under "Select Devices", check the checkboxes of all the devices you want to connect with Seam
61-
* Under the "Cloud URLS:" section, copy the "Get Device Info" Cloud URL, and save it. You'll be using this URL to connect the hub to Seam.
54+
- From the Hubitat Hub dashboard, click on "Apps" in the left navigation
55+
- Click on "Add Built-In App" on the top right corner
56+
- Click on the "Maker API" app to install it
57+
- Under the "Security" section:
58+
- Enable "Allow Access via Remote / Cloud"
59+
- Disable "Allow Access via Local IP / Address"
60+
- Under "Select Devices", check the checkboxes of all the devices you want to connect with Seam
61+
- Under the "Cloud URLS:" section, copy the "Get Device Info" Cloud URL, and save it. You'll be using this URL to connect the hub to Seam.
6262

6363
### 5. Adding your account via Seam Connect Webview
6464

6565
Use the Cloud URL you collected in the previous step to connect your account.
6666

6767
<figure><img src="../.gitbook/assets/Screen Shot 2023-07-06 at 5.19.49 PM (2).png" alt="" width="338"><figcaption></figcaption></figure>
6868

69-
***
69+
---
7070

7171
## Where to Order
7272

7373
You can purchase Hubitat Hubs from [their website](https://hubitat.com/products). They offer Zigbee and Z-Wave hubs that work in the following regions (with the associated Z-Wave frequencies):
7474

75-
* North America and United States (908.4 MHz)
76-
* Europe (868.4 MHz)
77-
* United Kingdom / Ireland (868.4 MHz)
78-
* Australia, New Zealand (921.4/919.8 MHz)
79-
* Korea/Thailand (920.9, 921.7, 923.1)
80-
* Malaysia (919.8, 921.4)
81-
* India (865.2)
82-
* Israel (916)
83-
* Japan (922.5, 923.9, 926.3)
84-
* Russia (869.0)
85-
* Hong Kong (919.8)
86-
* China (868.4)
75+
- North America and United States (908.4 MHz)
76+
- Europe (868.4 MHz)
77+
- United Kingdom / Ireland (868.4 MHz)
78+
- Australia, New Zealand (921.4/919.8 MHz)
79+
- Korea/Thailand (920.9, 921.7, 923.1)
80+
- Malaysia (919.8, 921.4)
81+
- India (865.2)
82+
- Israel (916)
83+
- Japan (922.5, 923.9, 926.3)
84+
- Russia (869.0)
85+
- Hong Kong (919.8)
86+
- China (868.4)
8787

8888
<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="files"></th></tr></thead><tbody><tr><td></td><td><strong>Hubitat Hub Store</strong></td><td></td><td><a href="https://hubitat.com/products">https://hubitat.com/products</a></td><td><a href="../.gitbook/assets/61-5mM-Np1L._AC_SL1500_.jpg">61-5mM-Np1L._AC_SL1500_.jpg</a></td></tr></tbody></table>

trash/guides/device-guides/implementing-robust-access-code-management-for-guests.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ Seam's official backup access code pool can be enabled by adding `use_backup_acc
5555
```javascript
5656
// Time of Creation
5757
await seam.accessCodes.create({
58-
name: "My Access Code",
59-
code: "1234",
58+
name: 'My Access Code',
59+
code: '1234',
6060
use_backup_access_code_pool: true,
6161
})
6262

6363
// Time of Reservation
6464
async function getGuestMessage() {
65-
const access_code = await seam.accessCodes.get({ name: "My Access Code" })
65+
const access_code = await seam.accessCodes.get({ name: 'My Access Code' })
6666
if (access_code.errors.length === 0) {
6767
return `Hello Guest! Your access code is: ${access_code.code}`
6868
} else {

trash/guides/quickstart/authentication.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,18 @@ Next, run the code below to check you are correctly authenticated:
1919
// Replace with
2020
// const Seam = require("seam")
2121
// if not using ES6 modules and/or TypeScript.
22-
import { Seam } from "seam";
22+
import { Seam } from 'seam'
2323

2424
// Seam will automatically use the SEAM_API_KEY environment variable if you
2525
// don't provide an apiKey to `new Seam()`
26-
const seam = new Seam();
26+
const seam = new Seam()
2727

2828
const checkAuth = async () => {
29-
const { workspace } = await seam.workspaces.get();
30-
console.log(workspace);
29+
const { workspace } = await seam.workspaces.get()
30+
console.log(workspace)
3131
}
3232

33-
checkAuth();
33+
checkAuth()
3434

3535
/*
3636
{

trash/guides/reference/help-center/README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@ layout:
1616

1717
Use the search bar at the top of the page to search for any help article!
1818

19+
---
1920

20-
21-
***
22-
23-
* [How often am I billed with Seam?](how-often-am-i-billed-with-seam.md)
24-
* [Handling Recurring Access Codes](handling-recurring-access-codes.md)
25-
* [what-is-an-action-attempt-when-is-it-used.md](what-is-an-action-attempt-when-is-it-used.md "mention")
21+
- [How often am I billed with Seam?](how-often-am-i-billed-with-seam.md)
22+
- [Handling Recurring Access Codes](handling-recurring-access-codes.md)
23+
- [what-is-an-action-attempt-when-is-it-used.md](what-is-an-action-attempt-when-is-it-used.md 'mention')

trash/guides/reference/help-center/handling-recurring-access-codes.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,15 @@ There are three main steps to implementing recurring access codes:
2020

2121
1. Create an access code at it's first scheduled "active period"
2222
2. Set up a webhook for `access_code.removed_from_device`
23-
3. Whenever an access\_code is deleted, set the access code's starts\_at and ends\_at to the next active period
23+
3. Whenever an access_code is deleted, set the access code's starts_at and ends_at to the next active period
2424

2525
## 1. Create an Access Code at it's First Scheduled "Active Period"
2626

2727
First, create an access code at the first "active period". Let's say that the first active period is tomorrow from 9am to 5pm. We'll create an access code the appropriate `starts_at` and `ends_at` time, then we'll save that access code to a user's `recurring_access_code_id` property, as shown below:
2828

29-
30-
3129
{% tabs %}
3230
{% tab title="Python" %}
31+
3332
```python
3433
from datetime import datetime, timedelta
3534

@@ -47,51 +46,49 @@ access_code = seam.access_codes.create(
4746
# Let's save this access code to a user
4847
my_user.recurring_access_code_id = access_code.access_code_id
4948
```
49+
5050
{% endtab %}
5151
{% endtabs %}
5252

5353
## 2. Set up a webhook for `access_code.removed_from_device`&#x20;
5454

55-
From the [Seam Console](https://console.seam.co/), set up a webhook to handle the `access_code.removed_from_device` event. This event is triggered whenever an access code is fully removed from a device, or at it's ends\_at time. By setting up a webhook, you'll receive an event every time the access code is removed.
55+
From the [Seam Console](https://console.seam.co/), set up a webhook to handle the `access_code.removed_from_device` event. This event is triggered whenever an access code is fully removed from a device, or at it's ends_at time. By setting up a webhook, you'll receive an event every time the access code is removed.
5656

5757
<figure><img src="../../.gitbook/assets/image (2) (1).png" alt=""><figcaption><p>Creating a webhook for access_code.removed_from_device from console.seam.co</p></figcaption></figure>
5858

59-
## 3. Whenever an access\_code is deleted, create a new access code with the starts\_at and ends\_at to the next active period
59+
## 3. Whenever an access_code is deleted, create a new access code with the starts_at and ends_at to the next active period
6060

6161
Whenever your webhook endpoint is called to indicate that the access code has been removed, you should create a new access code at the next active period and replace the access code attached to the user.
6262

6363
{% tabs %}
6464
{% tab title="Python" %}
65+
6566
```python
6667
@app.route('/handle_event', methods=['POST'])
6768
def handle_event():
6869
event = request.json["event"]
69-
70+
7071
if event["event_type"] == "access_code.removed_from_device":
7172
user = get_db_user(recurring_access_code_id=event["access_code_id"])
72-
73+
7374
if user.has_recurring_daily_code:
7475
# Create a new access code for the next active period
7576
tomorrow = datetime.now() + timedelta(days=1)
7677
tomorrow_9am = tomorrow.replace(hour=9, minute=0, second=0, microsecond=0)
7778
tomorrow_5pm = tomorrow.replace(hour=17, minute=0, second=0, microsecond=0)
78-
79+
7980
new_access_code = seam.access_codes.create(
8081
name="My Recurring Access Code",
8182
starts_at=tomorrow_9am.isoformat(),
8283
ends_at=tomorrow_5pm.isoformat()
8384
)
84-
85+
8586
user.recurring_access_code_id = new_access_code.access_code_id
8687
user.save()
87-
88+
8889
```
90+
8991
{% endtab %}
9092
{% endtabs %}
9193

9294
## &#x20;
93-
94-
95-
96-
97-

trash/guides/ui-components/overview/make-a-supported-devices-page-with-react.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Go to [console.seam.co](https://console.seam.co) and select "Client Sessions" fr
2727
## 3 — Import and Drop In the [\<SupportedDeviceTable /> Component](https://react.seam.co/?path=/docs/components-supporteddevicetable--docs)
2828

2929
```javascript
30-
import { SeamProvider, SupportedDeviceTable } from "@seamapi/react"
30+
import { SeamProvider, SupportedDeviceTable } from '@seamapi/react'
3131

3232
export const App = () => (
33-
<SeamProvider publishableKey="YOUR_PUBLISHABLE_KEY">
33+
<SeamProvider publishableKey='YOUR_PUBLISHABLE_KEY'>
3434
<SupportedDeviceTable />
3535
</SeamProvider>
3636
)
@@ -40,11 +40,9 @@ You should see a list of device models like what's shown below:
4040

4141
<figure><img src="https://3624860916-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FxnN2A67918om1UthYWsF%2Fuploads%2FyvmI7GxNyxhebqR99ZwF%2FScreen%20Shot%202023-06-30%20at%209.46.33%20AM.png?alt=media&#x26;token=18a6ad74-0f9f-4e18-8c15-57371c461044" alt=""><figcaption></figcaption></figure>
4242

43-
44-
4543
## Next Steps
4644

47-
* View and play with other components in the [interactive storybook component library](https://react.seam.co/)
48-
* Check out some [Full Example Apps](https://github.com/seamapi/react/tree/main/examples)
45+
- View and play with other components in the [interactive storybook component library](https://react.seam.co/)
46+
- Check out some [Full Example Apps](https://github.com/seamapi/react/tree/main/examples)
4947

5048
If you have any questions or want to report an issue, email us at support@seam.co.

0 commit comments

Comments
 (0)