We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dec0e92 commit d1622f2Copy full SHA for d1622f2
src/lib/seam/thermostats/thermostat-device.ts
@@ -36,7 +36,8 @@ export interface ClimateSetting {
36
37
export const isThermostatDevice = (
38
device: Device
39
-): device is ThermostatDevice => 'is_fan_running' in device.properties
+): device is ThermostatDevice =>
40
+ 'available_climate_presets' in device.properties
41
42
export type ThermostatClimatePreset =
43
ThermostatDevice['properties']['available_climate_presets'][number]
0 commit comments