Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 18 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
"npm": ">= 9.0.0"
},
"peerDependencies": {
"@seamapi/types": "^1.344.3",
"@seamapi/types": "^1.395.3",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"react": "^18.0.0",
Expand All @@ -128,7 +128,7 @@
},
"dependencies": {
"@floating-ui/react": "^0.27.5",
"@seamapi/http": "^1.20.0",
"@seamapi/http": "^1.30.2",
"@tanstack/react-query": "^5.27.5",
"classnames": "^2.3.2",
"luxon": "^3.3.0",
Expand All @@ -145,7 +145,7 @@
"@rxfork/r2wc-react-to-web-component": "^2.4.0",
"@seamapi/fake-devicedb": "^1.6.1",
"@seamapi/fake-seam-connect": "^1.76.0",
"@seamapi/types": "^1.344.3",
"@seamapi/types": "^1.395.3",
"@storybook/addon-designs": "^7.0.1",
"@storybook/addon-essentials": "^7.0.2",
"@storybook/addon-links": "^7.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,16 @@ export const Content: Story = {
{
error_code: 'account_disconnected',
is_connected_account_error: true,
created_at: '2023-05-08T22:38:30.963Z',
message:
'Account Disconnected, you may need to reconnect the account with a new webview.',
},
],
warnings: [
{
warning_code: 'salto_office_mode',
warning_code: 'delay_in_removing_from_device',
message:
'Salto office mode is enabled. Access codes will not unlock doors. You can disable office mode in the Salto dashboard.',
'There was a delay removing this access code from the device.',
},
],
},
Expand All @@ -83,15 +84,16 @@ export const Content: Story = {
{
error_code: 'account_disconnected',
is_connected_account_error: true,
created_at: '2023-05-08T22:38:30.963Z',
message:
'Account Disconnected, you may need to reconnect the account with a new webview.',
},
],
warnings: [
{
warning_code: 'salto_office_mode',
warning_code: 'delay_in_removing_from_device',
message:
'Salto office mode is enabled. Access codes will not unlock doors. You can disable office mode in the Salto dashboard.',
'There was a delay removing this access code from the device.',
},
],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,16 @@ export const Content: Story = {
{
error_code: 'account_disconnected',
message: 'Device account has been disconnected.',
created_at: '2023-05-08T22:38:30.963Z',
is_connected_account_error: true,
},
],
warnings: [
{
warning_code: 'salto_office_mode',
warning_code: 'salto_ks_office_mode',
created_at: '2023-05-08T22:38:30.963Z',
message:
'Salto office mode is enabled. Access codes will not unlock doors. You can disable office mode in the Salto dashboard.',
'Salto KS office mode is enabled. Access codes will not unlock doors. You can disable office mode in the Salto dashboard.',
},
],
},
Expand Down Expand Up @@ -104,15 +106,17 @@ export const Content: Story = {
errors: [
{
error_code: 'device_disconnected',
created_at: '2023-05-08T22:38:30.963Z',
message: 'Device has been disconnected.',
is_device_error: true,
},
],
warnings: [
{
warning_code: 'salto_office_mode',
warning_code: 'salto_ks_office_mode',
created_at: '2023-05-08T22:38:30.963Z',
message:
'Salto office mode is enabled. Access codes will not unlock doors. You can disable office mode in the Salto dashboard.',
'Salto KS office mode is enabled. Access codes will not unlock doors. You can disable office mode in the Salto dashboard.',
},
],
},
Expand Down
4 changes: 3 additions & 1 deletion src/lib/seam/filters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ export const connectedAccountErrorFilter = (
error: SeamResourceError
): boolean => {
return (
'is_connected_account_error' in error && error.is_connected_account_error
('is_connected_account_error' in error &&
error.is_connected_account_error) ??
false
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const getUpdatedDevice = (
display_name: variables.name ?? variables.climate_preset_key,
can_delete: true,
can_edit: true,
can_program: true,
manual_override_allowed: false,
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function getUpdatedDevice(
display_name: variables.name ?? variables.climate_preset_key,
can_delete: true,
can_edit: true,
can_program: true,
manual_override_allowed: true,
}

Expand Down
Loading