diff --git a/package-lock.json b/package-lock.json index d6b5232..68f11f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "devDependencies": { "@prettier/plugin-php": "^0.22.1", - "@seamapi/nextlove-sdk-generator": "1.8.2", + "@seamapi/nextlove-sdk-generator": "1.8.5", "@seamapi/types": "1.157.1", "del": "^7.1.0", "prettier": "^3.0.0" @@ -434,9 +434,9 @@ } }, "node_modules/@seamapi/nextlove-sdk-generator": { - "version": "1.8.2", - "resolved": "https://registry.npmjs.org/@seamapi/nextlove-sdk-generator/-/nextlove-sdk-generator-1.8.2.tgz", - "integrity": "sha512-lKbBDeB/GJkemmmg5x76MBazohmMV/BctzyunSn1vok4giCCPHHO/YAZE1urYrxDph9YFoQkay8vFa7Nj7Y5gg==", + "version": "1.8.5", + "resolved": "https://registry.npmjs.org/@seamapi/nextlove-sdk-generator/-/nextlove-sdk-generator-1.8.5.tgz", + "integrity": "sha512-TzJTRKhmhcdURshUVvPxuVJcpSp7CyGnEJskbV1odq0bPKFCZZYeSdxaKP2ouNpGw3Z8qZUX1aeWImvhDDfg0A==", "dev": true, "dependencies": { "@nodelib/fs.walk": "^2.0.0", diff --git a/package.json b/package.json index c580097..3941cd8 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ }, "devDependencies": { "@prettier/plugin-php": "^0.22.1", - "@seamapi/nextlove-sdk-generator": "1.8.2", + "@seamapi/nextlove-sdk-generator": "1.8.5", "@seamapi/types": "1.157.1", "del": "^7.1.0", "prettier": "^3.0.0" diff --git a/src/Objects/ClientSession.php b/src/Objects/ClientSession.php index 873c41a..6401d2d 100644 --- a/src/Objects/ClientSession.php +++ b/src/Objects/ClientSession.php @@ -30,7 +30,7 @@ public function __construct( public array $connect_webview_ids, public array $connected_account_ids, public string $created_at, - public int $device_count, + public float $device_count, public string $token, public string | null $user_identifier_key, public array $user_identity_ids, diff --git a/src/Objects/ClimateSettingSchedule.php b/src/Objects/ClimateSettingSchedule.php index 5dd00f8..deb832f 100644 --- a/src/Objects/ClimateSettingSchedule.php +++ b/src/Objects/ClimateSettingSchedule.php @@ -36,13 +36,13 @@ public function __construct( public bool | null $automatic_cooling_enabled, public bool | null $automatic_heating_enabled, public string $climate_setting_schedule_id, - public int | null $cooling_set_point_celsius, - public int | null $cooling_set_point_fahrenheit, + public float | null $cooling_set_point_celsius, + public float | null $cooling_set_point_fahrenheit, public string $created_at, public string $device_id, public mixed $errors, - public int | null $heating_set_point_celsius, - public int | null $heating_set_point_fahrenheit, + public float | null $heating_set_point_celsius, + public float | null $heating_set_point_fahrenheit, public string | null $hvac_mode_setting, public bool | null $manual_override_allowed, public string | null $name, diff --git a/src/Objects/DeviceAccelerometerZ.php b/src/Objects/DeviceAccelerometerZ.php index 0bec93e..d5952c9 100644 --- a/src/Objects/DeviceAccelerometerZ.php +++ b/src/Objects/DeviceAccelerometerZ.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DeviceAccelerometerZ|null public function __construct( public string $time, - public int $value, + public float $value, ) { } diff --git a/src/Objects/DeviceActiveClimateSettingSchedule.php b/src/Objects/DeviceActiveClimateSettingSchedule.php index c7ce86b..275cc46 100644 --- a/src/Objects/DeviceActiveClimateSettingSchedule.php +++ b/src/Objects/DeviceActiveClimateSettingSchedule.php @@ -36,13 +36,13 @@ public function __construct( public bool | null $automatic_cooling_enabled, public bool | null $automatic_heating_enabled, public string $climate_setting_schedule_id, - public int | null $cooling_set_point_celsius, - public int | null $cooling_set_point_fahrenheit, + public float | null $cooling_set_point_celsius, + public float | null $cooling_set_point_fahrenheit, public string $created_at, public string $device_id, public mixed $errors, - public int | null $heating_set_point_celsius, - public int | null $heating_set_point_fahrenheit, + public float | null $heating_set_point_celsius, + public float | null $heating_set_point_fahrenheit, public string | null $hvac_mode_setting, public bool | null $manual_override_allowed, public string | null $name, diff --git a/src/Objects/DeviceAvigilonAltaMetadata.php b/src/Objects/DeviceAvigilonAltaMetadata.php index 81fc434..fb1ffbf 100644 --- a/src/Objects/DeviceAvigilonAltaMetadata.php +++ b/src/Objects/DeviceAvigilonAltaMetadata.php @@ -25,9 +25,9 @@ public static function from_json(mixed $json): DeviceAvigilonAltaMetadata|null public function __construct( public string $entry_name, public string $org_name, - public int $site_id, + public float $site_id, public string $site_name, - public int $zone_id, + public float $zone_id, public string $zone_name, ) { } diff --git a/src/Objects/DeviceBattery.php b/src/Objects/DeviceBattery.php index 8c07a19..fb36697 100644 --- a/src/Objects/DeviceBattery.php +++ b/src/Objects/DeviceBattery.php @@ -18,7 +18,7 @@ public static function from_json(mixed $json): DeviceBattery|null public function __construct( - public int $level, + public float $level, ) { } diff --git a/src/Objects/DeviceCodeConstraints.php b/src/Objects/DeviceCodeConstraints.php index ae2d3a4..9e65ac9 100644 --- a/src/Objects/DeviceCodeConstraints.php +++ b/src/Objects/DeviceCodeConstraints.php @@ -21,8 +21,8 @@ public static function from_json(mixed $json): DeviceCodeConstraints|null public function __construct( public string $constraint_type, - public int | null $max_length, - public int | null $min_length, + public float | null $max_length, + public float | null $min_length, ) { } diff --git a/src/Objects/DeviceCurrentClimateSetting.php b/src/Objects/DeviceCurrentClimateSetting.php index db4ac99..5351b09 100644 --- a/src/Objects/DeviceCurrentClimateSetting.php +++ b/src/Objects/DeviceCurrentClimateSetting.php @@ -27,10 +27,10 @@ public static function from_json(mixed $json): DeviceCurrentClimateSetting|null public function __construct( public bool $automatic_cooling_enabled, public bool $automatic_heating_enabled, - public int | null $cooling_set_point_celsius, - public int | null $cooling_set_point_fahrenheit, - public int | null $heating_set_point_celsius, - public int | null $heating_set_point_fahrenheit, + public float | null $cooling_set_point_celsius, + public float | null $cooling_set_point_fahrenheit, + public float | null $heating_set_point_celsius, + public float | null $heating_set_point_fahrenheit, public string $hvac_mode_setting, public bool $manual_override_allowed, ) { diff --git a/src/Objects/DeviceDefaultClimateSetting.php b/src/Objects/DeviceDefaultClimateSetting.php index afb4040..23c73a4 100644 --- a/src/Objects/DeviceDefaultClimateSetting.php +++ b/src/Objects/DeviceDefaultClimateSetting.php @@ -27,10 +27,10 @@ public static function from_json(mixed $json): DeviceDefaultClimateSetting|null public function __construct( public bool $automatic_cooling_enabled, public bool $automatic_heating_enabled, - public int | null $cooling_set_point_celsius, - public int | null $cooling_set_point_fahrenheit, - public int | null $heating_set_point_celsius, - public int | null $heating_set_point_fahrenheit, + public float | null $cooling_set_point_celsius, + public float | null $cooling_set_point_fahrenheit, + public float | null $heating_set_point_celsius, + public float | null $heating_set_point_fahrenheit, public string $hvac_mode_setting, public bool $manual_override_allowed, ) { diff --git a/src/Objects/DeviceDormakabaOracodeMetadata.php b/src/Objects/DeviceDormakabaOracodeMetadata.php index ae08f2e..ca0e2a8 100644 --- a/src/Objects/DeviceDormakabaOracodeMetadata.php +++ b/src/Objects/DeviceDormakabaOracodeMetadata.php @@ -28,13 +28,13 @@ public static function from_json(mixed $json): DeviceDormakabaOracodeMetadata|nu public function __construct( - public int | null $device_id, - public int $door_id, + public float | null $device_id, + public float $door_id, public bool $door_is_wireless, public string $door_name, public string | null $iana_timezone, public array | null $predefined_time_slots, - public int $site_id, + public float $site_id, public string $site_name, ) { } diff --git a/src/Objects/DeviceFourSuitesMetadata.php b/src/Objects/DeviceFourSuitesMetadata.php index d47fa3d..46d34cc 100644 --- a/src/Objects/DeviceFourSuitesMetadata.php +++ b/src/Objects/DeviceFourSuitesMetadata.php @@ -20,9 +20,9 @@ public static function from_json(mixed $json): DeviceFourSuitesMetadata|null public function __construct( - public int $device_id, + public float $device_id, public string $device_name, - public int $reclose_delay_in_seconds, + public float $reclose_delay_in_seconds, ) { } diff --git a/src/Objects/DeviceHumidity.php b/src/Objects/DeviceHumidity.php index afc93ee..ef401cd 100644 --- a/src/Objects/DeviceHumidity.php +++ b/src/Objects/DeviceHumidity.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DeviceHumidity|null public function __construct( public string $time, - public int $value, + public float $value, ) { } diff --git a/src/Objects/DeviceKeypadBattery.php b/src/Objects/DeviceKeypadBattery.php index 2189d4e..347e975 100644 --- a/src/Objects/DeviceKeypadBattery.php +++ b/src/Objects/DeviceKeypadBattery.php @@ -18,7 +18,7 @@ public static function from_json(mixed $json): DeviceKeypadBattery|null public function __construct( - public int $level, + public float $level, ) { } diff --git a/src/Objects/DeviceNoiseawareMetadata.php b/src/Objects/DeviceNoiseawareMetadata.php index 9408326..aa3d2cc 100644 --- a/src/Objects/DeviceNoiseawareMetadata.php +++ b/src/Objects/DeviceNoiseawareMetadata.php @@ -25,8 +25,8 @@ public function __construct( public string $device_id, public string $device_model, public string $device_name, - public int $noise_level_decibel, - public int $noise_level_nrs, + public float $noise_level_decibel, + public float $noise_level_nrs, ) { } diff --git a/src/Objects/DevicePredefinedTimeSlots.php b/src/Objects/DevicePredefinedTimeSlots.php index 1ce4b36..fe2427d 100644 --- a/src/Objects/DevicePredefinedTimeSlots.php +++ b/src/Objects/DevicePredefinedTimeSlots.php @@ -30,13 +30,13 @@ public function __construct( public string $check_in_time, public string $check_out_time, public string $dormakaba_oracode_user_level_id, - public int $ext_dormakaba_oracode_user_level_prefix, + public float $ext_dormakaba_oracode_user_level_prefix, public bool $is_24_hour, public bool $is_biweekly_mode, public bool $is_master, public bool $is_one_shot, public string $name, - public int $prefix, + public float $prefix, ) { } diff --git a/src/Objects/DevicePressure.php b/src/Objects/DevicePressure.php index 97eb23c..d7e89e8 100644 --- a/src/Objects/DevicePressure.php +++ b/src/Objects/DevicePressure.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DevicePressure|null public function __construct( public string $time, - public int $value, + public float $value, ) { } diff --git a/src/Objects/DeviceProperties.php b/src/Objects/DeviceProperties.php index 1601d10..6c87b63 100644 --- a/src/Objects/DeviceProperties.php +++ b/src/Objects/DeviceProperties.php @@ -102,7 +102,7 @@ public function __construct( public DeviceAccessoryKeypad | null $accessory_keypad, public DeviceAppearance $appearance, public DeviceBattery | null $battery, - public int | null $battery_level, + public float | null $battery_level, public bool | null $has_direct_power, public string | null $image_alt_text, public string | null $image_url, @@ -148,7 +148,7 @@ public function __construct( public bool | null $has_native_entry_events, public DeviceKeypadBattery | null $keypad_battery, public bool | null $locked, - public int | null $max_active_codes_supported, + public float | null $max_active_codes_supported, public array | null $supported_code_lengths, public bool | null $supports_backup_access_code_pool, public DeviceActiveClimateSettingSchedule | null $active_climate_setting_schedule, @@ -165,19 +165,19 @@ public function __construct( public bool | null $is_heating, public bool | null $is_heating_available, public bool | null $is_temporary_manual_override_active, - public int | null $max_cooling_set_point_celsius, - public int | null $max_cooling_set_point_fahrenheit, - public int | null $max_heating_set_point_celsius, - public int | null $max_heating_set_point_fahrenheit, - public int | null $min_cooling_set_point_celsius, - public int | null $min_cooling_set_point_fahrenheit, - public int | null $min_heating_cooling_delta_celsius, - public int | null $min_heating_cooling_delta_fahrenheit, - public int | null $min_heating_set_point_celsius, - public int | null $min_heating_set_point_fahrenheit, - public int | null $relative_humidity, - public int | null $temperature_celsius, - public int | null $temperature_fahrenheit, + public float | null $max_cooling_set_point_celsius, + public float | null $max_cooling_set_point_fahrenheit, + public float | null $max_heating_set_point_celsius, + public float | null $max_heating_set_point_fahrenheit, + public float | null $min_cooling_set_point_celsius, + public float | null $min_cooling_set_point_fahrenheit, + public float | null $min_heating_cooling_delta_celsius, + public float | null $min_heating_cooling_delta_fahrenheit, + public float | null $min_heating_set_point_celsius, + public float | null $min_heating_set_point_fahrenheit, + public float | null $relative_humidity, + public float | null $temperature_celsius, + public float | null $temperature_fahrenheit, ) { } diff --git a/src/Objects/DeviceSchlageMetadata.php b/src/Objects/DeviceSchlageMetadata.php index f33c820..4e9785e 100644 --- a/src/Objects/DeviceSchlageMetadata.php +++ b/src/Objects/DeviceSchlageMetadata.php @@ -21,7 +21,7 @@ public static function from_json(mixed $json): DeviceSchlageMetadata|null public function __construct( - public int | null $access_code_length, + public float | null $access_code_length, public string $device_id, public string $device_name, public string | null $model, diff --git a/src/Objects/DeviceSeamBridgeMetadata.php b/src/Objects/DeviceSeamBridgeMetadata.php index bf3daac..825a0ec 100644 --- a/src/Objects/DeviceSeamBridgeMetadata.php +++ b/src/Objects/DeviceSeamBridgeMetadata.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DeviceSeamBridgeMetadata|null public function __construct( - public int $device_num, + public float $device_num, public string $name, public string | null $unlock_method, ) { diff --git a/src/Objects/DeviceSound.php b/src/Objects/DeviceSound.php index cb071f5..a72f645 100644 --- a/src/Objects/DeviceSound.php +++ b/src/Objects/DeviceSound.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DeviceSound|null public function __construct( public string $time, - public int $value, + public float $value, ) { } diff --git a/src/Objects/DeviceTedeeMetadata.php b/src/Objects/DeviceTedeeMetadata.php index a6337b8..9394383 100644 --- a/src/Objects/DeviceTedeeMetadata.php +++ b/src/Objects/DeviceTedeeMetadata.php @@ -24,12 +24,12 @@ public static function from_json(mixed $json): DeviceTedeeMetadata|null public function __construct( - public int $bridge_id, + public float $bridge_id, public string $bridge_name, - public int $device_id, + public float $device_id, public string $device_model, public string $device_name, - public int | null $keypad_id, + public float | null $keypad_id, public string $serial_number, ) { } diff --git a/src/Objects/DeviceTemperature.php b/src/Objects/DeviceTemperature.php index 797ab01..0b59a8d 100644 --- a/src/Objects/DeviceTemperature.php +++ b/src/Objects/DeviceTemperature.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DeviceTemperature|null public function __construct( public string $time, - public int $value, + public float $value, ) { } diff --git a/src/Objects/DeviceTtlockMetadata.php b/src/Objects/DeviceTtlockMetadata.php index 24179ea..e84e12d 100644 --- a/src/Objects/DeviceTtlockMetadata.php +++ b/src/Objects/DeviceTtlockMetadata.php @@ -20,7 +20,7 @@ public static function from_json(mixed $json): DeviceTtlockMetadata|null public function __construct( public string $lock_alias, - public int $lock_id, + public float $lock_id, ) { } diff --git a/src/Objects/DeviceTwoNMetadata.php b/src/Objects/DeviceTwoNMetadata.php index 491c777..45c3875 100644 --- a/src/Objects/DeviceTwoNMetadata.php +++ b/src/Objects/DeviceTwoNMetadata.php @@ -19,7 +19,7 @@ public static function from_json(mixed $json): DeviceTwoNMetadata|null public function __construct( - public int $device_id, + public float $device_id, public string $device_name, ) { } diff --git a/src/Objects/DeviceWyzeMetadata.php b/src/Objects/DeviceWyzeMetadata.php index 8236298..6a2743d 100644 --- a/src/Objects/DeviceWyzeMetadata.php +++ b/src/Objects/DeviceWyzeMetadata.php @@ -29,7 +29,7 @@ public function __construct( public string $device_info_model, public string $device_name, public string | null $keypad_uuid, - public int | null $locker_status_hardlock, + public float | null $locker_status_hardlock, public string $product_model, public string $product_name, public string $product_type, diff --git a/src/Objects/NoiseThreshold.php b/src/Objects/NoiseThreshold.php index 38fd62a..629bd97 100644 --- a/src/Objects/NoiseThreshold.php +++ b/src/Objects/NoiseThreshold.php @@ -27,9 +27,9 @@ public function __construct( public string $device_id, public string $ends_daily_at, public string $name, - public int $noise_threshold_decibels, + public float $noise_threshold_decibels, public string $noise_threshold_id, - public int | null $noise_threshold_nrs, + public float | null $noise_threshold_nrs, public string $starts_daily_at, ) { } diff --git a/src/Objects/UnmanagedDeviceBattery.php b/src/Objects/UnmanagedDeviceBattery.php index d42332d..178ee63 100644 --- a/src/Objects/UnmanagedDeviceBattery.php +++ b/src/Objects/UnmanagedDeviceBattery.php @@ -18,7 +18,7 @@ public static function from_json(mixed $json): UnmanagedDeviceBattery|null public function __construct( - public int $level, + public float $level, ) { } diff --git a/src/Objects/UnmanagedDeviceProperties.php b/src/Objects/UnmanagedDeviceProperties.php index 591a799..ded524a 100644 --- a/src/Objects/UnmanagedDeviceProperties.php +++ b/src/Objects/UnmanagedDeviceProperties.php @@ -30,7 +30,7 @@ public static function from_json(mixed $json): UnmanagedDeviceProperties|null public function __construct( public UnmanagedDeviceAccessoryKeypad | null $accessory_keypad, public UnmanagedDeviceBattery | null $battery, - public int | null $battery_level, + public float | null $battery_level, public string | null $image_alt_text, public string | null $image_url, public string | null $manufacturer, diff --git a/src/SeamClient.php b/src/SeamClient.php index 0e5117c..50d0fda 100644 --- a/src/SeamClient.php +++ b/src/SeamClient.php @@ -28,10 +28,13 @@ use Seam\Objects\UserIdentity; use Seam\Objects\Webhook; use Seam\Objects\Workspace; +use Seam\Utils\PackageVersion; use GuzzleHttp\Client as HTTPClient; use \Exception as Exception; +define('LTS_VERSION', '1.0.0'); + class SeamClient { public AccessCodesClient $access_codes; @@ -53,6 +56,7 @@ class SeamClient public string $api_key; public HTTPClient $client; + public string $ltsVersion = LTS_VERSION; public function __construct( $api_key, @@ -60,12 +64,16 @@ public function __construct( $throw_http_errors = false ) { $this->api_key = $api_key; + $seam_sdk_version = PackageVersion::get(); $this->client = new HTTPClient([ "base_uri" => $endpoint, "timeout" => 60.0, "headers" => [ "Authorization" => "Bearer " . $this->api_key, - "User-Agent" => "Seam PHP Client 0.0.1", + "User-Agent" => "Seam PHP Client ". $seam_sdk_version, + "seam-sdk-name" => "seamapi/php", + "seam-sdk-version" => $seam_sdk_version, + "seam-lts-version" => $this->ltsVersion ], "http_errors" => $throw_http_errors, ]); @@ -261,7 +269,7 @@ public function create_multiple( string $max_time_rounding = null, string $name = null, bool $prefer_native_scheduling = null, - int $preferred_code_length = null, + float $preferred_code_length = null, string $starts_at = null, bool $use_backup_access_code_pool = null, bool $use_offline_access_code = null @@ -2437,7 +2445,7 @@ public function list( array $device_types = null, array $exclude_if = null, array $include_if = null, - int $limit = null, + float $limit = null, string $manufacturer = null, string $user_identifier_key = null ): array { @@ -2646,7 +2654,7 @@ public function list( array $device_types = null, array $exclude_if = null, array $include_if = null, - int $limit = null, + float $limit = null, string $manufacturer = null, string $user_identifier_key = null ): array { @@ -2786,7 +2794,7 @@ public function list( array $device_ids = null, string $event_type = null, array $event_types = null, - int $limit = null, + float $limit = null, string $since = null ): array { $request_payload = []; @@ -2887,7 +2895,7 @@ public function list( array $device_types = null, array $exclude_if = null, array $include_if = null, - int $limit = null, + float $limit = null, string $manufacturer = null, string $user_identifier_key = null ): array { @@ -3090,8 +3098,8 @@ public function create( string $ends_daily_at, string $starts_daily_at, string $name = null, - int $noise_threshold_decibels = null, - int $noise_threshold_nrs = null, + float $noise_threshold_decibels = null, + float $noise_threshold_nrs = null, bool $sync = null ): NoiseThreshold { $request_payload = []; @@ -3218,8 +3226,8 @@ public function update( string $noise_threshold_id, string $ends_daily_at = null, string $name = null, - int $noise_threshold_decibels = null, - int $noise_threshold_nrs = null, + float $noise_threshold_decibels = null, + float $noise_threshold_nrs = null, string $starts_daily_at = null, bool $sync = null ): void { @@ -3441,10 +3449,10 @@ public function create( string $schedule_starts_at, bool $automatic_cooling_enabled = null, bool $automatic_heating_enabled = null, - int $cooling_set_point_celsius = null, - int $cooling_set_point_fahrenheit = null, - int $heating_set_point_celsius = null, - int $heating_set_point_fahrenheit = null, + float $cooling_set_point_celsius = null, + float $cooling_set_point_fahrenheit = null, + float $heating_set_point_celsius = null, + float $heating_set_point_fahrenheit = null, string $hvac_mode_setting = null, bool $manual_override_allowed = null, string $name = null, @@ -3587,10 +3595,10 @@ public function update( string $climate_setting_schedule_id, bool $automatic_cooling_enabled = null, bool $automatic_heating_enabled = null, - int $cooling_set_point_celsius = null, - int $cooling_set_point_fahrenheit = null, - int $heating_set_point_celsius = null, - int $heating_set_point_fahrenheit = null, + float $cooling_set_point_celsius = null, + float $cooling_set_point_fahrenheit = null, + float $heating_set_point_celsius = null, + float $heating_set_point_fahrenheit = null, string $hvac_mode_setting = null, bool $manual_override_allowed = null, string $name = null, @@ -3669,8 +3677,8 @@ public function __construct(SeamClient $seam) public function cool( string $device_id, - int $cooling_set_point_celsius = null, - int $cooling_set_point_fahrenheit = null, + float $cooling_set_point_celsius = null, + float $cooling_set_point_fahrenheit = null, bool $sync = null, bool $wait_for_action_attempt = true ): ActionAttempt { @@ -3738,8 +3746,8 @@ public function get( public function heat( string $device_id, - int $heating_set_point_celsius = null, - int $heating_set_point_fahrenheit = null, + float $heating_set_point_celsius = null, + float $heating_set_point_fahrenheit = null, bool $sync = null, bool $wait_for_action_attempt = true ): ActionAttempt { @@ -3780,10 +3788,10 @@ public function heat( public function heat_cool( string $device_id, - int $cooling_set_point_celsius = null, - int $cooling_set_point_fahrenheit = null, - int $heating_set_point_celsius = null, - int $heating_set_point_fahrenheit = null, + float $cooling_set_point_celsius = null, + float $cooling_set_point_fahrenheit = null, + float $heating_set_point_celsius = null, + float $heating_set_point_fahrenheit = null, bool $sync = null, bool $wait_for_action_attempt = true ): ActionAttempt { @@ -3839,7 +3847,7 @@ public function list( array $device_types = null, array $exclude_if = null, array $include_if = null, - int $limit = null, + float $limit = null, string $manufacturer = null, string $user_identifier_key = null ): array { diff --git a/src/Utils/PackageVersion.php b/src/Utils/PackageVersion.php new file mode 100644 index 0000000..852c79b --- /dev/null +++ b/src/Utils/PackageVersion.php @@ -0,0 +1,41 @@ +