Skip to content
This repository was archived by the owner on Nov 15, 2024. It is now read-only.

Commit 9504fed

Browse files
authored
fix: manual_override_allowed is never optional (#273)
1 parent 36e739e commit 9504fed

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

docs/modules.md

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/types/models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ export type ClimateSetting = {
483483
manual_override_allowed: boolean
484484
}
485485

486-
export type ClimateSettingScheduleBase = Partial<ClimateSetting> & {
486+
export type ClimateSettingScheduleBase = ClimateSetting & {
487487
schedule_type?: "time_bound"
488488
device_id: string
489489
name?: string

tests/routes.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,7 @@ test(
465465
automatic_cooling_enabled: true,
466466
heating_set_point_fahrenheit: 40,
467467
cooling_set_point_fahrenheit: 80,
468+
manual_override_allowed: true,
468469
},
469470
],
470471
load_devices_from: ["nest"],

0 commit comments

Comments
 (0)