An air-conditioning apparatus comprising: a compressor incorporating an electric motor; a temperature sensor configured to detect indoor temperature; a drive circuit configured to drive the electric motor; a connection switching device configured to switch connection of stator windings of the electric motor between a first connection state and a second connection state higher in line-to-line voltage than the first connection state; wherein in the first connection state, the stator windings are delta-connected, and in the second connection state, the stator windings are star-connected; and a controller configured to enter thermo-off when the indoor temperature reaches a target temperature or a correction temperature set based on the target temperature and cause the connection switching device to switch connection, the thermo-off being entered by stopping the compressor via the drive circuit, characterized in that when a thermo-off count reaches a reference count with the electric motor being in the first connection state, the controller causes the connection switching device to switch the connection of the stator windings from the first connection state to the second connection state during the thermo-off; the air-conditioning apparatus further comprises a temperature sensor configured to detect temperature of the compressor, wherein with the electric motor operating in the first connection state, the controller does not control the connection switching to switch from the first connection state to the second connection state when the temperature of the compressor is equal to or higher than a reference temperature, even if a condition for switching from the first connection state to the second connection state is satisfied. a compressor incorporating an electric motor; a temperature sensor configured to detect indoor temperature; a drive circuit configured to drive the electric motor; a connection switching device configured to switch connection of stator windings of the electric motor between a first connection state and a second connection state higher in line-to-line voltage than the first connection state; wherein in the first connection state, the stator windings are delta-connected, and in the second connection state, the stator windings are star-connected; and a controller configured to enter thermo-off when the indoor temperature reaches a target temperature or a correction temperature set based on the target temperature and cause the connection switching device to switch connection, the thermo-off being entered by stopping the compressor via the drive circuit, characterized in that when a thermo-off count reaches a reference count with the electric motor being in the first connection state, the controller causes the connection switching device to switch the connection of the stator windings from the first connection state to the second connection state during the thermo-off; the air-conditioning apparatus further comprises a temperature sensor configured to detect temperature of the compressor, wherein with the electric motor operating in the first connection state, the controller does not control the connection switching to switch from the first connection state to the second connection state when the temperature of the compressor is equal to or higher than a reference temperature, even if a condition for switching from the first connection state to the second connection state is satisfied.