* commit '18ad6514bbeb68a96c12ba1636ab8df8e3945f37': Move broadcastState STATE_TURNING_ON before persistSwitchSetting