diff --git a/package-lock.json b/package-lock.json index b787970..e6ce54b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.72.1", "@seamapi/nextlove-sdk-generator": "1.14.11", - "@seamapi/types": "1.292.2", + "@seamapi/types": "1.294.1", "del": "^7.1.0", "prettier": "^3.2.5" } @@ -473,9 +473,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.292.2", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.292.2.tgz", - "integrity": "sha512-mOCFatzYy89uzu4IEV3kFoPz5SCVd3w2TMC0G3hVrzxL3PYFRnuUa4LNKMsd583prDgoh6rmEHhKEAICqibXFQ==", + "version": "1.294.1", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.294.1.tgz", + "integrity": "sha512-/a52eBDPurKJ/cgQYjBOsv31EhgnxlpXkrJhBQzX9AWeYVu42c9e7CFvill1ztVhGBzOaEnyt2UBh7X7wxdqHA==", "dev": true, "engines": { "node": ">=18.12.0", diff --git a/package.json b/package.json index 75e9286..a23a674 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "devDependencies": { "@seamapi/fake-seam-connect": "1.72.1", "@seamapi/nextlove-sdk-generator": "1.14.11", - "@seamapi/types": "1.292.2", + "@seamapi/types": "1.294.1", "del": "^7.1.0", "prettier": "^3.2.5" } diff --git a/seam/routes/models.py b/seam/routes/models.py index f3a1cb5..1b31c30 100644 --- a/seam/routes/models.py +++ b/seam/routes/models.py @@ -786,6 +786,7 @@ class ThermostatSchedule: name: str starts_at: str thermostat_schedule_id: str + unstable_is_override_allowed: bool @staticmethod def from_dict(d: Dict[str, Any]): @@ -799,6 +800,7 @@ def from_dict(d: Dict[str, Any]): name=d.get("name", None), starts_at=d.get("starts_at", None), thermostat_schedule_id=d.get("thermostat_schedule_id", None), + unstable_is_override_allowed=d.get("unstable_is_override_allowed", None), ) @@ -1706,6 +1708,7 @@ def create( device_id: str, ends_at: str, starts_at: str, + is_override_allowed: Optional[bool] = None, max_override_period_minutes: Optional[int] = None, name: Optional[str] = None ) -> ThermostatSchedule: @@ -1732,6 +1735,7 @@ def update( thermostat_schedule_id: str, climate_preset_key: Optional[str] = None, ends_at: Optional[str] = None, + is_override_allowed: Optional[bool] = None, max_override_period_minutes: Optional[int] = None, name: Optional[str] = None, starts_at: Optional[str] = None @@ -1882,13 +1886,13 @@ def create_climate_preset( *, climate_preset_key: str, device_id: str, - manual_override_allowed: bool, cooling_set_point_celsius: Optional[float] = None, cooling_set_point_fahrenheit: Optional[float] = None, fan_mode_setting: Optional[str] = None, heating_set_point_celsius: Optional[float] = None, heating_set_point_fahrenheit: Optional[float] = None, hvac_mode_setting: Optional[str] = None, + manual_override_allowed: Optional[bool] = None, name: Optional[str] = None ) -> None: raise NotImplementedError() diff --git a/seam/routes/thermostats.py b/seam/routes/thermostats.py index a46ec5d..14a937b 100644 --- a/seam/routes/thermostats.py +++ b/seam/routes/thermostats.py @@ -84,13 +84,13 @@ def create_climate_preset( *, climate_preset_key: str, device_id: str, - manual_override_allowed: bool, cooling_set_point_celsius: Optional[float] = None, cooling_set_point_fahrenheit: Optional[float] = None, fan_mode_setting: Optional[str] = None, heating_set_point_celsius: Optional[float] = None, heating_set_point_fahrenheit: Optional[float] = None, hvac_mode_setting: Optional[str] = None, + manual_override_allowed: Optional[bool] = None, name: Optional[str] = None ) -> None: json_payload = {} @@ -99,8 +99,6 @@ def create_climate_preset( json_payload["climate_preset_key"] = climate_preset_key if device_id is not None: json_payload["device_id"] = device_id - if manual_override_allowed is not None: - json_payload["manual_override_allowed"] = manual_override_allowed if cooling_set_point_celsius is not None: json_payload["cooling_set_point_celsius"] = cooling_set_point_celsius if cooling_set_point_fahrenheit is not None: @@ -113,6 +111,8 @@ def create_climate_preset( json_payload["heating_set_point_fahrenheit"] = heating_set_point_fahrenheit if hvac_mode_setting is not None: json_payload["hvac_mode_setting"] = hvac_mode_setting + if manual_override_allowed is not None: + json_payload["manual_override_allowed"] = manual_override_allowed if name is not None: json_payload["name"] = name diff --git a/seam/routes/thermostats_schedules.py b/seam/routes/thermostats_schedules.py index 091e97a..1632d58 100644 --- a/seam/routes/thermostats_schedules.py +++ b/seam/routes/thermostats_schedules.py @@ -15,6 +15,7 @@ def create( device_id: str, ends_at: str, starts_at: str, + is_override_allowed: Optional[bool] = None, max_override_period_minutes: Optional[int] = None, name: Optional[str] = None ) -> ThermostatSchedule: @@ -28,6 +29,8 @@ def create( json_payload["ends_at"] = ends_at if starts_at is not None: json_payload["starts_at"] = starts_at + if is_override_allowed is not None: + json_payload["is_override_allowed"] = is_override_allowed if max_override_period_minutes is not None: json_payload["max_override_period_minutes"] = max_override_period_minutes if name is not None: @@ -79,6 +82,7 @@ def update( thermostat_schedule_id: str, climate_preset_key: Optional[str] = None, ends_at: Optional[str] = None, + is_override_allowed: Optional[bool] = None, max_override_period_minutes: Optional[int] = None, name: Optional[str] = None, starts_at: Optional[str] = None @@ -91,6 +95,8 @@ def update( json_payload["climate_preset_key"] = climate_preset_key if ends_at is not None: json_payload["ends_at"] = ends_at + if is_override_allowed is not None: + json_payload["is_override_allowed"] = is_override_allowed if max_override_period_minutes is not None: json_payload["max_override_period_minutes"] = max_override_period_minutes if name is not None: