# JS API Changes of the Power Management Subsystem The table below lists the APIs changes of the power management subsystem in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS. ## API Changes | Module| Class| Method/Attribute/Enumeration/Constant| Change Type| |---|---|---|---| | ohos.thermal | thermal | getThermalLevel(): ThermalLevel; | Added| | ohos.thermal | thermal | unsubscribeThermalLevel(callback?: AsyncCallback\): void; | Added| | ohos.thermal | thermal | subscribeThermalLevel(callback: AsyncCallback\): void; | Added| | ohos.thermal | ThermalLevel | EMERGENCY = 6 | Added| | ohos.thermal | ThermalLevel | WARNING = 5 | Added| | ohos.thermal | ThermalLevel | OVERHEATED = 4 | Added| | ohos.thermal | ThermalLevel | HOT = 3 | Added| | ohos.thermal | ThermalLevel | WARM = 2 | Added| | ohos.thermal | ThermalLevel | NORMAL = 1 | Added| | ohos.thermal | ThermalLevel | COOL = 0 | Added| | ohos.runninglock | runningLock | createRunningLock(name: string, type: RunningLockType, callback: AsyncCallback\): void;
createRunningLock(name: string, type: RunningLockType): Promise\; | Added| | ohos.runninglock | runningLock | isRunningLockTypeSupported(type: RunningLockType, callback: AsyncCallback\): void;
isRunningLockTypeSupported(type: RunningLockType): Promise\; | Added|