Skip to content

Commit 5b544d8

Browse files
committed
Fix type error
1 parent 7d09ce7 commit 5b544d8

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

src/lib/seam/components/DeviceDetails/DeviceDetails.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ export function DeviceDetails({
5353
})
5454
.then(async () => await refetchDevice())
5555
.catch((error) => {
56+
// eslint-disable-next-line no-console
5657
console.error(error)
5758
})
5859
}

src/lib/seam/components/DeviceDetails/LockDeviceDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { useToggle } from 'lib/ui/use-toggle.js'
2020

2121
interface LockDeviceDetailsProps extends NestedSpecificDeviceDetailsProps {
2222
device: LockDevice
23-
onEditName?: (newName: string) => void
23+
onEditName?: (newName: string) => void | Promise<void>
2424
}
2525

2626
export function LockDeviceDetails({

src/lib/seam/components/DeviceDetails/NoiseSensorDeviceDetails.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type TabType = 'details' | 'activity'
1919
interface NoiseSensorDeviceDetailsProps
2020
extends NestedSpecificDeviceDetailsProps {
2121
device: NoiseSensorDevice
22-
onEditName?: (newName: string) => void
22+
onEditName?: (newName: string) => void | Promise<void>
2323
}
2424

2525
export function NoiseSensorDeviceDetails({

src/lib/seam/components/DeviceDetails/ThermostatDeviceDetails.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import { ThermostatCard } from 'lib/ui/thermostat/ThermostatCard.js'
2929
interface ThermostatDeviceDetailsProps
3030
extends NestedSpecificDeviceDetailsProps {
3131
device: ThermostatDevice
32-
onEditName?: (newName: string) => void
32+
onEditName?: (newName: string) => void | Promise<void>
3333
}
3434

3535
export function ThermostatDeviceDetails({
@@ -235,7 +235,7 @@ function ClimateSettingRow({
235235
}
236236
}
237237

238-
return () => {}
238+
return () => { }
239239
}, [isHeatCoolSuccess, isHeatSuccess, isCoolSuccess, isSetOffSuccess])
240240

241241
return (
@@ -275,7 +275,7 @@ function ClimateSettingRow({
275275
delta={
276276
Number(
277277
'min_heating_cooling_delta_fahrenheit' in device.properties &&
278-
device.properties.min_heating_cooling_delta_fahrenheit
278+
device.properties.min_heating_cooling_delta_fahrenheit
279279
) ?? 0
280280
}
281281
/>

0 commit comments

Comments
 (0)